For example:
var carro = {
"modelo": "celta",
"ano": 2007
}
How can I do a generic function that returns the index names of this json, in this case "model" and "year"?
Something like:
function(json){
//faz o processo
return indices;
}