Package | Description |
---|---|
com.dslplatform.json | |
jsonvalues |
json-values is a one-package and zero-dependency library to work with jsons in a declarative and functional way.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
MyDslJson.serialize(Json<?> json) |
void |
MyDslJson.serialize(Json<?> json,
OutputStream outputstream) |
String |
MyDslJson.toPrettyString(Json<?> json,
int indentLength) |
Modifier and Type | Interface and 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 | Class and Description |
---|---|
class |
JsArray
Represents a json array, which is an ordered list of elements.
|
class |
JsObj
Represents a json object, which is an unordered set of name/element pairs.
|
Modifier and Type | Method and Description |
---|---|
default Json<?> |
JsValue.toJson()
Returns this JsValue as a Json
|
Modifier and Type | Method and Description |
---|---|
default boolean |
JsValue.isJson(Predicate<Json<?>> predicate)
Returns true if this elem is a Json and satisfies the given predicate
|
Copyright © 2022. All rights reserved.