Modifier and Type | Interface | Description |
---|---|---|
interface |
Json<T extends Json<T>> |
Represents a json of type T, where T is the type of the container, either a JsObj or a JsArray.
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
JsArray |
Represents a json array, which is an ordered list of elements.
|
interface |
JsObj |
Represents a json object, which is an unordered set of name/element pairs.
|
Modifier and Type | Method | Description |
---|---|---|
default Json<?> |
JsElem.asJson() |
|
Json<?> |
Try.orElseThrow() |
Returns the computed Json if the parsed string is a well-formed json, throwing a MalformedJson
exception otherwise.
|
Modifier and Type | Method | Description |
---|---|---|
Optional<Json<?>> |
Try.toOptional() |
Returns the computed Json wrapped in an optional if the parsed string is a well-formed json,
returning an empty optional otherwise.
|
Modifier and Type | Method | Description |
---|---|---|
default boolean |
JsElem.isJson(Predicate<Json<?>> predicate) |
Returns true if this elem is a Json and satisfies the given predicate
|
Copyright © 2019. All rights reserved.