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.

Bhaskar Bhatt Default Asked on March 18, 2016 in Programming.
Add Comment
  • 1 Answer(s)

    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” }’);

    Vandna Thakar Default Answered on April 26, 2016.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.