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(
The best solution is to use JSONObject.get() and check for the type using instanceof operator.
instanceof