Link to home
Start Free TrialLog in
Avatar of Manikandan Thiagarajan
Manikandan ThiagarajanFlag for India

asked on

Parsing the json data

I want to parse the JSON Data in to grid


I want to make a ajax call and get the json values and display in to  grid


could you please help me  the pseudo code
Avatar of ste5an
ste5an
Flag of Germany image

Pseudo-code is pretty simple. E.g. using promises:

ajaxCall().then(populateGrid())

Open in new window

What grid?

JSON can be parsed using JSON.parse(jsonstring);

But most grid implementations will automatically do the parsing for you.

If you are using jQuery to AJAX the data then jQuery will parse it for you.

$.ajax( {
   url: url,
   dataType: 'JSON',
   ...
}).then(callback);

Open in new window

$.post(url, data, callback, 'JSON');

Open in new window


So unless we have a context we can't give you any more information than the above.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.