android - Sending Integer to Json Call -


Actually "speaking rigidly, Jason has been implicated, so you can not send it as an integer, This is a string. "It is said 2 years ago, so I wonder if there is any change in JSON to get an integer from the JSON object. I try to call the integer this way;

  Fixed Ent version CODE = 0; JsonObject = new JSONObject (results); JSONObject queryJSONObject = jsonObject.getJSONObject ("query"); VersionCode = queryJSONObject.getInt ("versionCode");  

And JSON is like this;

{"query": {"versionCode": 1, ....}}

Can anything be done?

Thank you.

Follow this You can use the GetString () function to get the value


Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -