I got server responsed JSON data:
var data = SERVER_RESPONSE;
this data could be an object {id: 12, name: John},
it could also be an array of objects [{id: 12, name: John}, {id: 22, name: OMG}]
In Javascript, how can I check if the JSON data is one object or an array of objects?