Newbie Question:
I successfully get a json collection of books from the server:
$.getJSON("/Data/json.txt", function (data) {
//Book array?
});
Given the JSON looks like this:
{
"Books":[
{
"ID":"42",
"Name": "AJAX"
},
{
"ID":"41",
"Name": "Sand"
}
]
}
How do I get a populated “Book” collection ? (I’m coming from a C# background)
You will already have the books array inside data. Like this: