lundi 26 janvier 2015

iOS: Using JSONModel, how do you grab dictionaries with numeric key?

I'm currently using JSONModel by icanzilb to parse my JSON structures obtained online. The issue is that I have a dictionary which has numeric keys, plus these numeric keys are generated by the server on-demand. So theoretically I have no advance knowledge of what these numeric keys will be. So under this situation, I couldn't add a @property to my JSON data header files.


Any idea on how to deal with this situation?


An example of the JSON structure:



{
"Content":[
{
"0":{...},
"1":{...},
"2":{...},
"Forum":"1",
"Member": "Michael",
}
],
"Count":"5"
}



Aucun commentaire:

Enregistrer un commentaire