I want to list all the keys(including nested) in from json object in jquery... the keys/ json object is dynamic so program never the format but it will be json for sure
I need a jquery that list only keys from JSON
Following is sample data:
{
"status_code": 200,
"status_text": "Success",
"count": 6,
"data": [{
"date": "2012-02-27",
"zone": "NORTH ZONE",
"centre": "CHANDIGARH",
"commodity": "Tea Loose",
"price": "265"
}, {
"date": "2012-02-24",
"zone": "NORTH ZONE",
"centre": "CHANDIGARH",
"commodity": "Tea Loose",
"price": "265"
}]
}
From above JSON I want to list only keys.