Class JSONParser

java.lang.Object
org.skyscreamer.jsonassert.JSONParser

public class JSONParser extends Object
Simple JSON parsing utility.
  • Method Details

    • parseJSON

      public 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.
      Parameters:
      s - Raw JSON string to be parsed
      Returns:
      JSONObject or JSONArray