Using $.ajax i'm calling for a json data. server returns me json within () like:
({
"FileCount": 3,
"Files": [{},{}]
});
How should I parse or extract the data from it? Thanks
Using $.ajax i'm calling for a json data. server returns me json within () like:
({
"FileCount": 3,
"Files": [{},{}]
});
How should I parse or extract the data from it? Thanks
I got what is going on with such a JSON response! There was supposed to be a callback which received the JSON. Since the callback is a function the response was sorrounded with (). But the callback wasn't provided so, instead of callback({}) I get ({})