I've built some JSON
{
"News": {
"Article": {"title": "test"},
"Article": { "title": "test" },
/*Snipped*/
"Article": { "title": "test" },
"Article": { "title": "test" }
},
"count": "20"
}
which validates in a JSON formatter http://jsonformatter.curiousconcept.com/. But when I try to ingest this data through jQuery I don't get what's expected:
$.getJSON('php/json.php', function(data) {
console.log(data);
});
Results
News: Object
Article: Object
title: "test"
__proto__: Object
__proto__: Object
count: "20"
but where are my 19 other Article Objects? I'm new to JSON and jquery's getJSON. Is there anything I'm missing?