public class NashornJsonParser extends Object implements IJsonParser
| Modifier and Type | Method and Description |
|---|---|
static IJsonParser |
instance() |
Bindings |
parseJson(String jsonText,
boolean withBigNumbers,
boolean withTokens)
Parse Json text as a standard javax.script.Bindings object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultParserpublic static IJsonParser instance()
public Bindings parseJson(String jsonText, boolean withBigNumbers, boolean withTokens) throws 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.ScriptExceptionCopyright © 2018. All rights reserved.