I have a json which is like
{
"Payload":[{
"PrevYr":"21333",
"CurYr":"123454"
},{
"PrevYr":"234333",
"CurYr":"45546"
},{
"PrevYr":"3563",
"CurYr":"67854"
}]
}
Now in my code i read this json using
$.getJSON("readJson.json", function (data) {}
I need to read the json and create another json with some changes on it. But i can't read the "CurYr" and "PrevYr". I mean not their values. But them. So if there is 2014 and 2015 in place of curyr and prevyr i can get them also. I need to read the left side. Please help..