Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Parsing JSON into a table Re: Parsing JSON into a table

#125242
mweldan
Member

on success, convert json string to javascript object

use: http://api.jquery.com/jQuery.parseJSON/

$.ajax({
type: “POST”
,url: “https://test.my.site.com/api/api/db/"
,contentType: “application/json; charset=utf-8”
,dataType: “jsonp”
,data: “{}”
,success: function(res) {
var obj = $.parseJSON(res);
console.log(obj);
//continue work here..
}
});