Package snap.util
Class JSParser
java.lang.Object
snap.parse.Parser
snap.util.JSParser
A JSONParser subclass (with handlers).
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Array Handler.static class
static class
Object Handler.static class
Pair Handler.static class
Value Handler.Nested classes/interfaces inherited from class snap.parse.Parser
Parser.HandlerRef
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
readSource
(Object aSource) Reads JSON from a source.readString
(String aString) Returns a KeyChain for given string.Methods inherited from class snap.parse.Parser
clearTokens, createNode, createRule, createTokenizer, getCharIndex, getInput, getLastValidToken, getLookAheadToken, getNextToken, getRule, getRule, getToken, getTokenizer, initRule, lookAhead, parse, parse, parse, parse, parseCustom, parseCustom, parseCustom, parseFailed, setCharIndex, setInput, setRule, setTokenizer
-
Constructor Details
-
JSParser
public JSParser()Creates a JSONParser.
-
-
Method Details
-
readSource
Reads JSON from a source. -
readString
Returns a KeyChain for given string. -
main
-