suppose I have {"data": {"243232": {"id": "testid","name": "test" } }}
so how to get correct value thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you cant directly pass above String with Gson as “243232” is number and we cant declare variable which start from number, So for parsing this you must modify the string with some notification
i.e.
{"data": {"temp243232": {"id": "testid","name": "test" } }}here i modified string manually “243232” by “temp243232”, now you can parse it