public class JSONParser extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
parseJSON(String s)
Takes a JSON string and returns either a
JSONObject or JSONArray ,
depending on whether the string represents an object or an array. |
public static Object parseJSON(String s) throws org.json.JSONException
JSONObject
or JSONArray
,
depending on whether the string represents an object or an array.s
- Raw JSON string to be parsedorg.json.JSONException
Copyright © 2018. All rights reserved.