Question: I have a JSON like this return from a php file

```
[
 {"value":

       {"longitude":"103.8439764",
        "latitude":"1.0345","date":"Tue 04 Jun, 2013",
        "time":"12:27"}},

 {"value":
       {"longitude":"104.8439764",
        "latitude":"1.235","date":"Mon 03 Jun, 2013",
        "time":"12:28"}},
 {"status":
        "his_loc"
 }
]

```

How can I achieve the data like data.status or else ?

Answer: 
You have to parse the data into an object variable:

```
var data = JSON.parse( datastring );

```

After that, you can address certain properties directly (e.g. data.status).
I suggest restructuring the response from the server if possible, since the response is not so well-formatted.

**Step 1**: Change the response as follows:

```
{
 "value1":

       {"longitude":"103.8439764",
        "latitude":"1.0345","date":"Tue 04 Jun, 2013",
        "time":"12:27"},

 "value2":
       {"longitude":"104.8439764",
        "latitude":"1.235","date":"Mon 03 Jun, 2013",
        "time":"12:28"},
 "status":
        "his_loc"

}

```

**Step 2**: Parse the response to a JSON object.

```
var json = JSON.parse(responseString);

```

And now you can access the status as follows:

```
var status = json.status;

```

That's it!