com.google.gwt.json.client
Class JSONParser

java.lang.Object
  extended by com.google.gwt.json.client.JSONParser

public class JSONParser
extends java.lang.Object

Parses the string representation of a JSON object into a set of JSONValue-derived objects.

See Also:
JSONValue

Method Summary
static JSONValue parse(java.lang.String jsonString)
          Given a jsonString, returns the JSONObject representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static JSONValue parse(java.lang.String jsonString)
Given a jsonString, returns the JSONObject representation. For efficiency, parsing occurs lazily as the structure is requested.

Parameters:
jsonString -
Returns:
a JSONObject that has been built by parsing the JSON string
Throws:
java.lang.NullPointerException - if jsonString is null
java.lang.IllegalArgumentException - if jsonString is empty