public interface IJsonParser
Modifier and Type | Method and Description |
---|---|
static IJsonParser |
getDefaultParser() |
Object |
parseJson(String jsonText,
boolean withBigNumbers,
boolean withTokens)
Parse Json text as a standard manifold.rt.api.Bindings object.
|
Object parseJson(String jsonText, boolean withBigNumbers, boolean withTokens) throws manifold.rt.api.ScriptException
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 errorsstatic IJsonParser getDefaultParser()
Copyright © 2024. All rights reserved.