Package | Description |
---|---|
jsonvalues |
The `jsonvalues` package provides a set of classes and interfaces for working with JSON (JavaScript Object Notation) data in a type-safe and structured manner.
|
jsonvalues.spec |
The `jsonvalues.spec` package provides classes and interfaces for defining and working with JSON specifications (specs) and parsers.
|
Modifier and Type | Method and Description |
---|---|
static JsParserException |
JsParserException.reasonAt(String reason,
long index) |
Modifier and Type | Method and Description |
---|---|
static JsArray |
JsArray.parse(byte[] bytes)
Parses a JSON array represented as a byte array and returns a new
JsArray instance. |
static JsObj |
JsObj.parse(byte[] bytes)
Parses the given array of bytes into an immutable and persistent JSON object.
|
static JsArray |
JsArray.parse(String str)
Parses a JSON array represented as a string and returns a new
JsArray instance. |
static JsObj |
JsObj.parse(String str)
Parses the given string into an immutable and persistent JSON object.
|
Modifier and Type | Method and Description |
---|---|
JsReader |
JsIO.createReader(InputStream is)
Creates a JSON reader from an input stream.
|
byte |
JsReader.readNextToken()
Read next token (byte) from input JSON.
|
default JsValue |
JsSpec.readNextValue(JsReader reader)
Low-level method to parse a JSON value token by token from a reader.
|
Copyright © 2023. All rights reserved.