Uses of Interface
jsonvalues.Json
-
Packages that use Json Package Description jsonvalues json-values is a one-package and zero-dependency library to work with jsons in a declarative and functional way. -
-
Uses of Json in jsonvalues
Classes in jsonvalues with type parameters of type Json 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.Classes in jsonvalues that implement Json Modifier and Type Class 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.Methods in jsonvalues that return Json Modifier and Type Method Description static Json<?>
Json. parse(String str)
Tries to parse the string into an immutable json.static Json<?>
Json. parse(String str, ParseBuilder builder)
Tries to parse the string into an immutable json, performing the specified transformations while the parsing.default Json<?>
JsValue. toJson()
Method parameters in jsonvalues with type arguments of type Json Modifier and Type Method Description <T> T
JsPair. ifJsonElse(BiFunction<JsPath,Json<?>,T> ifJson, BiFunction<JsPath,JsValue,T> ifNotJson)
Declarative way of implementing an if(json)return T; else return T; where T is computed by the given functionsstatic <T> Function<JsValue,T>
MatchExp. ifJsonElse(Function<Json<?>,T> ifJson, Function<JsValue,T> ifNotJson)
return a matching expression to extract jsons out of json elements.default boolean
JsValue. isJson(Predicate<Json<?>> predicate)
Returns true if this elem is a Json and satisfies the given predicate
-