How would I parse this JSON string?
{"nodes":["content"],"pager":"content"}
This is the function I’m using to grah the json.
$.getJSON(dataNodes, {
}, function (data) {
for(var i = 0; i < data.length; i++) {
$('#content').append(?????data.nodes?????);
}
});
I’m using data.nodes to try to capture that nodes value.
data.nodesis an array with one value (“content”), so if you are trying to append that string then you should use: