2021年5月3日星期一

How do I access a JSON object that begins with NULL using gson?

I am trying to access a web API by using gson to parse through it into a string. The URL returns :

NULL { "status": "yes", "problem": "400072500002031600000009007000150400000396010090000003003015002065000000000703000", "result": "489672531752831649316549827238157496547396218691284753873415962165928374924763185", "time": "0.0472550392151" }  

The above json element starts with NULL, is what is causing a problem for me to access its objects. I want to get the numbers in "result" object as a string. Using Gson only to parse the JSON objects please. Any help would be appreciated!

https://stackoverflow.com/questions/67378278/how-do-i-access-a-json-object-that-begins-with-null-using-gson May 04, 2021 at 11:05AM

没有评论:

发表评论