We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
case1:
[ { "rollno": "001553244373", "app_dob": "1992-10-25", "result": "Contains no info" } ]
case2:
{ "certno": "001439924373", "app_dob": "1992-10-25", "result": "Contains no information" }
How come for both case1,2 returned same POJO's ? case one starts with JSON array , case2 starts with Json object!!
YourClass yourClass = gson.fromJson(json, case2.class); //success
YourClass yourClass = gson.fromJson(json, case1.class); //fails
The text was updated successfully, but these errors were encountered:
Thanks for reporting this.
Can you show me the case1 generated class ?
But, by the way, i currently have little time to maintain this. But, if you provide a fix, send me a pull request and i'll update it.
Sorry, something went wrong.
No branches or pull requests
case1:
[
{
"rollno": "001553244373",
"app_dob": "1992-10-25",
"result": "Contains no info"
}
]
case2:
How come for both case1,2 returned same POJO's ? case one starts with JSON array , case2 starts with Json object!!
YourClass yourClass = gson.fromJson(json, case2.class); //success
YourClass yourClass = gson.fromJson(json, case1.class); //fails
The text was updated successfully, but these errors were encountered: