Hi,
I am getting json data using ajax that i want to convert as array means i want to
parse json using jquery.
any one can please help me.
thanks in advance.
Hi,
You can parse json using jquery as below way.
Using Jquery
var data = jQuery.parseJSON( ‘{ “fame”: “Thakar” }’ );
//now to see details of object
console.log(data);
//To get name john do the following things
alert(data.name);
Using JavaScript
var obj=JSON.parse( ‘{ “name”: “John” }’);