var user = '{ "name": "Вася", "age": 35, "isAdmin": false, "friends": [0,1,2,3] }';
user = JSON.parse(user);
alert( user.friends[1] ); // 1
user.friends[1].thelocation
var users = [{ "thelocation" : "москва", "":""},{ "thelocation" : "london", "":""}];
console.log(users[1].thelocation);