How to parse this type of JSON response using AJAX JavaScript?

Hi there

this is my JSON response from server I want to parse using JSON

[{"newsId":1,"newsTitle":"This is Title-1","newsDescription":"This is for first News","newsAddedDate":"01/01/1991"},{"newsId":2,"newsTitle":"This is Title-2","newsDescription":"This is Second News","newsAddedDate":"03/01/1991"}]

and this is my JSfiddle that I have try so far

Problem with above approach is that I can only Iterate one Object of News I want to try and Loop through all the News Object that I have added in server response

How can I do this?

I solved my Issue

trick was use

data[0]

for first object

data[1]

for second object and so on

check my jsfiddle.net

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.