java.lang.Object
com.grack.nanojson.JsonParser.JsonParserContext<T>
- Type Parameters:
T- The parsed type.
- Enclosing class:
JsonParser
Returns a type-safe parser context for a
JsonObject, JsonArray or "any" type from which you can
parse a String or a Reader.-
Method Summary
Modifier and TypeMethodDescriptionfrom(InputStream stm) Parses the current JSON type from aInputStream.Parses the current` JSON type from aReader.Parses the current JSON type from aString.Parses the current JSON type from aURL.Parses numbers lazily, allowing us to defer some of the cost of number construction until later.
-
Method Details
-
withLazyNumbers
Parses numbers lazily, allowing us to defer some of the cost of number construction until later. -
from
Parses the current JSON type from aString.- Throws:
JsonParserException
-
from
Parses the current` JSON type from aReader.- Throws:
JsonParserException
-
from
Parses the current JSON type from aURL.- Throws:
JsonParserException
-
from
Parses the current JSON type from aInputStream. Detects the encoding from the input stream.- Throws:
JsonParserException
-