I\'m trying to get the type of the value stored in a JSONObject.
JSONObject
String jString = {\"a\": 1, \"b\": \"str\"}; JSONObject jObj = new JSONObject(
You can parse all the data as String and then try to convert it to the desired type. At this point you may catch the exception and determine which type is the parsed data.
String