I have the following JSON object:
[
{
"comments": [
{
"created_at": "2011-02-09T14:42:42-08:0
the JSON you have coming back is actually an array itself, so...
dataJS[0].comments[0].created_at
will be 2011-02-09T14:42:42-08:00
, etc...
Both dataJS
and comments
are arrays, and need indexes to access the appropriate elements.
console.log(dataJS);
console.log(dataJS[0].eee1);
console.log(dataJS[0].comments[0]);