org.skyscreamer.jsonassert
Class JSONParser

java.lang.Object
  extended by 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
 

Method Detail

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:
Throws:
org.json.JSONException


Copyright © 2012. All Rights Reserved.