Package org.apache.struts2.json
Class JSONReader
java.lang.Object
org.apache.struts2.json.JSONReader
Deserializes and object from a JSON string
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadd()protected voidadd(char cc) protected voidprotected Listarray()protected JSONExceptionprotected charnext()protected Objectnumber()protected Mapobject()protected Objectread()protected voidprotected Objectstring(char quote) protected charunicode()
-
Constructor Details
-
JSONReader
public JSONReader()
-
-
Method Details
-
next
protected char next() -
skipWhiteSpace
protected void skipWhiteSpace() -
read
- Throws:
JSONException
-
read
- Throws:
JSONException
-
object
- Throws:
JSONException
-
buildInvalidInputException
-
array
- Throws:
JSONException
-
number
- Throws:
JSONException
-
string
-
add
protected void add(char cc) -
add
protected void add() -
addDigits
protected void addDigits() -
unicode
protected char unicode()
-