$.getJSON('contacts.json', function (json) {
var array = [];
for (var key in json) {
if (json.hasOwnProperty(key)) {
var item = json[key];
array.push({
name: item.Name,
surname: item.Surname,
mobile: item.mobile,
email: item.email
});
}
}
});
int n = 0;
JSONObject jsonObject = jsonArray.getJSONObject(n);
var j = {a:"aaaaaa", b:"bbbbbb", c:"cccccc"}
console.log(Object.keys(j))