Package org.skyscreamer.jsonassert
Class JSONParser
java.lang.Object
org.skyscreamer.jsonassert.JSONParser
Simple JSON parsing utility.
-
Method Summary
-
Method Details
-
parseJSON
Takes a JSON string and returns either aJSONObject
orJSONArray
, depending on whether the string represents an object or an array.- Parameters:
s
- Raw JSON string to be parsed- Returns:
- JSONObject or JSONArray
-