public class DefaultParser extends java.lang.Object implements IJsonParser
| Constructor and Description |
|---|
DefaultParser() |
| Modifier and Type | Method and Description |
|---|---|
static IJsonParser |
instance() |
java.lang.Object |
parseJson(java.lang.String jsonText,
boolean withBigNumbers,
boolean withTokens)
Parse Json text as a standard manifold.rt.api.Bindings object.
|
clone, equals, finalize, getClass, hashCode, jailbreak, notify, notifyAll, toString, wait, wait, waitgetDefaultParserpublic static IJsonParser instance()
public java.lang.Object parseJson(java.lang.String jsonText,
boolean withBigNumbers,
boolean withTokens)
throws manifold.rt.api.ScriptException
IJsonParserparseJson in interface IJsonParserjsonText - Any Json text, can be an object, a list, or simple value.withBigNumbers - Parse decimal numbers as BigDecimals and integers and BigIntegers,
otherwise they are Double and Integer.withTokens - Store tokens for Json name value pairs. The token contains positional
information for tooling e.g., to facilitate navigation in an IDE. This
parameter should be false for normal use-cases.manifold.rt.api.ScriptException - for parse errorsCopyright © 2021. All rights reserved.