Read a json string using jquery -


how can read json string using loop, intention create/append table 3 columns containing in each row 1 of json values, not sure how can achieve it

{ "1":   {     "update":"ja existe",     "numero":1,     "registro":"ibram - 2014"   }, "2":   {     "update":"ja existe",     "numero":2,     "registro":"pm-sp - 2014"   }, "3":   {     "update":"ja existe",     "numero":3,     "registro":"artesp - 2014"   } } 

if string, can convert json object , iterate through each element follows:

var json = json.parse('the json string'); (key in json) {   var value = json[key];   // whatever wanna value } 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -