Home > DeveloperSection > Forums > How to get the second data of this JSON in jQuery?
Anurag Sharma
Anurag Sharma

Total Post:40

Posted on    November-24-2014 10:02 PM

 JavaScript JQuery  JSON 

 1 Reply(s)
 886  View(s)
Rate this:

Hi Guys

How can I get the second data of this JSON - I am beta. in jQuery?

{"alpha":["I am alpha"],"beta":["I am beta."]}


Kamlakar Singh
Kamlakar Singh

Total Post:194

Posted on    November-25-2014 2:03 AM

Step 1: Json parsed,

Step 2 : Declared in another string

Step 3 : And then looped inside each entry


  var error_string='';

  $.each(obj, function(entry) {





And then i got the values that is inside, Now i can able to get the values inside the object even for n numbers.

Don't want to miss updates? Please click the below button!

Follow MindStick