I have a json object how can I get object name ? I can't have object name it will be sent by server and that way I should get the object names.
{
"success":1,
"return":{
"343152":{//get this object name
"pair":"usd_eur",
"type":"sell",
"amount":1.00000000,
"rate":3.00000000,
"timestamp_created":1342448420,
"status":0
}
"343157":{//get this object name
"pair":"usd_eur",
"type":"sell",
"amount":1.00000000,
"rate":3.00000000,
"timestamp_created":1342448420,
"status":0
}
}
}
Since your post was tagged with qjson, I assume you're using it...
See http://qjson.sourceforge.net/usage/