org.skyscreamer.jsonassert
Class JSONParser
java.lang.Object
org.skyscreamer.jsonassert.JSONParser
public class JSONParser
- extends Object
Simple JSON parsing utility.
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parseJSON
public static Object parseJSON(String s)
throws org.json.JSONException
- Takes a JSON string and returns either a
JSONObject or JSONArray,
depending on whether the string represents an object or an array.
- Parameters:
s - Raw JSON string to be parsed
- Returns:
- JSONObject or JSONArray
- Throws:
org.json.JSONException
Copyright © 2013. All Rights Reserved.