Am I capturing this JSON value correctly?

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.

newest questions tagged jquery – Stack Overflow

About Admin