public class DefaultParser extends Object implements IJsonParser
Constructor and Description |
---|
DefaultParser() |
Modifier and Type | Method and Description |
---|---|
static IJsonParser |
instance() |
Object |
parseJson(String jsonText,
boolean withBigNumbers,
boolean withTokens)
Parse Json text as a standard manifold.rt.api.Bindings object.
|
clone, emptyArray, equals, finalize, getClass, hashCode, jailbreak, notify, notifyAll, toString, wait, wait, wait
getDefaultParser
public static IJsonParser instance()
public Object parseJson(String jsonText, boolean withBigNumbers, boolean withTokens) throws manifold.rt.api.ScriptException
IJsonParser
parseJson
in interface IJsonParser
jsonText
- 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 © 2024. All rights reserved.