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
Post a Comment