I\'m developing an Android 3.1 and above application.
I\'m using Spring Framework 1.0.0.0RC1 for Android, and Google GSon 2.1.
I\'m getting an error when I\'m tr
as your string starts with "{
", which means it is an Object(json concept) and it seems that your considering it as an array, which is wrong.
EDITED:
{"data":
{
"allFormsResult": [
{
"FormId": 1,
"FormName": "Formulario 1"
},
{
"FormId": 2,
"FormName": "Formulario 2"
},
{
"FormId": 3,
"FormName": "Formulario 3"
}
]
}
}
just append a object "data", and then continue with you parsing. It is a problem of Json when it got first element as an Array "[
".