I am using an AJAX request to dynamically fetch some data from a database. The data is returned back to AJAX after being put through the PHP function `json_encode()`. The returned value that I recieve from the AJAX request is as follows:

```
{"counter":1,"1":{"objectID":"1","objectType":"note","objectDate":"2015-10-10     19:55:26","objectTitle":"Test Note","objectContent":"Lorem ipsum dolor sit amet consecetur adpiscing...","objectColor":"white"}}

```

How would I go about splitting this data down into separate variables such as `counter` for where the `{"counter":1` JSON object is? Also, how would I split the sub-arrays of the JSON data into individual javascript arrays?

All help would be much appreciated. Thanks.