Home › Forums › JavaScript › Parsing JSON into a table › Re: Parsing JSON into a table
February 19, 2013 at 12:01 pm
#125242
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..
}
});