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.gen |
This package contains a set of generators for creating JSON-like data structures using the `jsonvalues` library.
|
jsonvalues.spec |
The `jsonvalues.spec` package provides classes and interfaces for defining and working with JSON specifications (specs) and parsers.
|
Modifier and Type | Field and Description |
---|---|
static fun.optic.Prism<JsValue,JsObj> |
JsObj.prism
A Prism that allows you to view a
JsValue as a JsObj if it represents an object, or as an empty optional if it's not an object. |
Modifier and Type | Method and Description |
---|---|
JsObj |
JsObj.delete(JsPath path) |
JsObj |
JsObj.delete(String key)
Deletes the specified key from the JSON object.
|
static JsObj |
JsObj.empty()
Returns the singleton empty JSON object
|
JsObj |
JsObj.filterKeys(BiPredicate<? super JsPath,? super JsValue> filter) |
JsObj |
JsObj.filterKeys(Predicate<? super String> filter) |
JsObj |
JsObj.filterObjs(BiPredicate<? super JsPath,? super JsObj> filter) |
JsObj |
JsObj.filterObjs(Predicate<? super JsObj> filter) |
JsObj |
JsObj.filterValues(BiPredicate<? super JsPath,? super JsPrimitive> filter) |
JsObj |
JsObj.filterValues(Predicate<? super JsPrimitive> filter) |
JsObj |
JsArray.getObj(int index)
Retrieves the value located at the specified index within the JSON-like array and attempts to
interpret it as a JSON object (JsObj).
|
JsObj |
JsArray.getObj(int index,
Supplier<JsObj> orElse)
Retrieves the value located at the specified index within the JSON-like array and attempts to
interpret it as a JSON object (JsObj).
|
default JsObj |
Json.getObj(JsPath path)
Returns the object located at the given path or null if it doesn't exist or it's not an object.
|
default JsObj |
Json.getObj(JsPath path,
Supplier<JsObj> orElse)
Returns the object located at the given path or the default value provided if it doesn't exist or it's not an object.
|
JsObj |
JsObj.getObj(String key)
Returns the json object located at the given key or null if it doesn't exist or it's not an object.
|
JsObj |
JsObj.getObj(String key,
Supplier<JsObj> orElse)
Returns the json object located at the given key or the default value provided
if it doesn't exist, or it's not an object.
|
JsObj |
JsObj.intersection(JsObj that,
JsArray.TYPE ARRAY_AS) |
JsObj |
JsObj.mapKeys(BiFunction<? super JsPath,? super JsValue,String> fn) |
JsObj |
JsObj.mapKeys(Function<? super String,String> fn) |
JsObj |
JsObj.mapObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn) |
JsObj |
JsObj.mapObjs(Function<? super JsObj,? extends JsValue> fn) |
JsObj |
JsObj.mapValues(BiFunction<? super JsPath,? super JsPrimitive,? extends JsValue> fn) |
JsObj |
JsObj.mapValues(Function<? super JsPrimitive,? extends JsValue> fn) |
static JsObj |
JsObj.of(JsPath path,
JsValue el)
Static factory method to create one-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2)
Static factory method to create two-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3)
Static factory method to create three-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4)
Static factory method to create four-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5)
Static factory method to create five-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6)
Static factory method to create six-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7)
Static factory method to create seven-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8)
Static factory method to create eight-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9)
Static factory method to create nine-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10)
Static factory method to create ten-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11)
Static factory method to create eleven-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12)
Static factory method to create twelve-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12,
JsPath path13,
JsValue el13)
Static factory method to create thirteen-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12,
JsPath path13,
JsValue el13,
JsPath path14,
JsValue el14)
Static factory method to create fourteen-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12,
JsPath path13,
JsValue el13,
JsPath path14,
JsValue el14,
JsPath path15,
JsValue el15)
Static factory method to create fifteen-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12,
JsPath path13,
JsValue el13,
JsPath path14,
JsValue el14,
JsPath path15,
JsValue el15,
JsPath path16,
JsValue el16)
Static factory method to create sixteen-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12,
JsPath path13,
JsValue el13,
JsPath path14,
JsValue el14,
JsPath path15,
JsValue el15,
JsPath path16,
JsValue el16,
JsPath path17,
JsValue el17)
Static factory method to create seventeen-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12,
JsPath path13,
JsValue el13,
JsPath path14,
JsValue el14,
JsPath path15,
JsValue el15,
JsPath path16,
JsValue el16,
JsPath path17,
JsValue el17,
JsPath path18,
JsValue el18)
Static factory method to create eighteen-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12,
JsPath path13,
JsValue el13,
JsPath path14,
JsValue el14,
JsPath path15,
JsValue el15,
JsPath path16,
JsValue el16,
JsPath path17,
JsValue el17,
JsPath path18,
JsValue el18,
JsPath path19,
JsValue el19)
Static factory method to create nineteen-element JSON object
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12,
JsPath path13,
JsValue el13,
JsPath path14,
JsValue el14,
JsPath path15,
JsValue el15,
JsPath path16,
JsValue el16,
JsPath path17,
JsValue el17,
JsPath path18,
JsValue el18,
JsPath path19,
JsValue el19,
JsPath path20,
JsValue el20)
Static factory method to create twenty-element JSON object
|
static JsObj |
JsObj.of(String key,
JsValue el)
Static factory method to create one-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2)
Static factory method to create two-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3)
Static factory method to create three-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4)
Static factory method to create four-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5)
Static factory method to create five-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6)
Static factory method to create six-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7)
Static factory method to create seven-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8)
Static factory method to create eight-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9)
Static factory method to create nine-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10)
Static factory method to create ten-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11)
Static factory method to create eleven-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12)
Static factory method to create twelve-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13)
Static factory method to create thirteen-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14)
Static factory method to create fourteen-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15)
Static factory method to create fifteen-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16)
Static factory method to create sixteen-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17)
Static factory method to create seventeen-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17,
String key18,
JsValue el18)
Static factory method to create eighteen-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17,
String key18,
JsValue el18,
String key19,
JsValue el19)
Static factory method to create nineteen-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17,
String key18,
JsValue el18,
String key19,
JsValue el19,
String key20,
JsValue el20)
Static factory method to create twenty-element JSON object
|
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17,
String key18,
JsValue el18,
String key19,
JsValue el19,
String key20,
JsValue el20,
String key21,
JsValue el21) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17,
String key18,
JsValue el18,
String key19,
JsValue el19,
String key20,
JsValue el20,
String key21,
JsValue el21,
String key22,
JsValue el22) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17,
String key18,
JsValue el18,
String key19,
JsValue el19,
String key20,
JsValue el20,
String key21,
JsValue el21,
String key22,
JsValue el22,
String key23,
JsValue el23) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17,
String key18,
JsValue el18,
String key19,
JsValue el19,
String key20,
JsValue el20,
String key21,
JsValue el21,
String key22,
JsValue el22,
String key23,
JsValue el23,
String key24,
JsValue el24) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17,
String key18,
JsValue el18,
String key19,
JsValue el19,
String key20,
JsValue el20,
String key21,
JsValue el21,
String key22,
JsValue el22,
String key23,
JsValue el23,
String key24,
JsValue el24,
String key25,
JsValue el25) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17,
String key18,
JsValue el18,
String key19,
JsValue el19,
String key20,
JsValue el20,
String key21,
JsValue el21,
String key22,
JsValue el22,
String key23,
JsValue el23,
String key24,
JsValue el24,
String key25,
JsValue el25,
String key26,
JsValue el26) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17,
String key18,
JsValue el18,
String key19,
JsValue el19,
String key20,
JsValue el20,
String key21,
JsValue el21,
String key22,
JsValue el22,
String key23,
JsValue el23,
String key24,
JsValue el24,
String key25,
JsValue el25,
String key26,
JsValue el26,
String key27,
JsValue el27) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17,
String key18,
JsValue el18,
String key19,
JsValue el19,
String key20,
JsValue el20,
String key21,
JsValue el21,
String key22,
JsValue el22,
String key23,
JsValue el23,
String key24,
JsValue el24,
String key25,
JsValue el25,
String key26,
JsValue el26,
String key27,
JsValue el27,
String key28,
JsValue el28) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17,
String key18,
JsValue el18,
String key19,
JsValue el19,
String key20,
JsValue el20,
String key21,
JsValue el21,
String key22,
JsValue el22,
String key23,
JsValue el23,
String key24,
JsValue el24,
String key25,
JsValue el25,
String key26,
JsValue el26,
String key27,
JsValue el27,
String key28,
JsValue el28,
String key29,
JsValue el29) |
static JsObj |
JsObj.parse(byte[] bytes)
Parses the given array of bytes into an immutable and persistent JSON object.
|
static JsObj |
JsObj.parse(String str)
Parses the given string into an immutable and persistent JSON object.
|
JsObj |
JsObj.set(JsPath path,
JsValue element) |
JsObj |
JsObj.set(JsPath path,
JsValue value,
JsValue padElement) |
JsObj |
JsObj.set(String key,
JsValue value)
Sets the specified key to the given JSON value.
|
default JsObj |
JsValue.toJsObj()
Returns this JsValue as a JsObj.
|
JsObj |
JsObj.union(JsObj that,
JsArray.TYPE ARRAY_AS) |
Modifier and Type | Method and Description |
---|---|
fun.optic.Option<JsObj,JsArray> |
JsOptics.JsObjOptional.array(JsPath path)
optional that focus on the array located at a path in an object
|
fun.optic.Lens<JsObj,JsArray> |
JsOptics.JsObjLenses.array(JsPath path)
lens that focus on a json object located at a path in an object.
|
fun.optic.Option<JsObj,JsArray> |
JsOptics.JsObjOptional.array(String key)
optional that focus on the array located at a key in an object
|
fun.optic.Lens<JsObj,JsArray> |
JsOptics.JsObjLenses.array(String key)
lens that focus on a json array located at a key in an object.
|
fun.optic.Option<JsObj,byte[]> |
JsOptics.JsObjOptional.binary(JsPath path)
optional that focus on the array of bytes located at a path in an object
|
fun.optic.Lens<JsObj,byte[]> |
JsOptics.JsObjLenses.binary(JsPath path)
lens that focus on an array of bytes located at a path in an object.
|
fun.optic.Option<JsObj,byte[]> |
JsOptics.JsObjOptional.binary(String key)
optional that focus on the array of bytes located at a key in an object
|
fun.optic.Lens<JsObj,byte[]> |
JsOptics.JsObjLenses.binary(String key)
lens that focus on an array of bytes located at a key in an object.
|
fun.optic.Option<JsObj,Boolean> |
JsOptics.JsObjOptional.bool(JsPath path)
optional that focus on the boolean located at a path in an object
|
fun.optic.Lens<JsObj,Boolean> |
JsOptics.JsObjLenses.bool(JsPath path)
lens that focus on a boolean located at a path in an object.
|
fun.optic.Option<JsObj,Boolean> |
JsOptics.JsObjOptional.bool(String key)
optional that focus on the boolean located at a key in an object
|
fun.optic.Lens<JsObj,Boolean> |
JsOptics.JsObjLenses.bool(String key)
lens that focus on a boolean located at a path in an object.
|
fun.optic.Option<JsObj,BigDecimal> |
JsOptics.JsObjOptional.decimalNum(JsPath path)
optional that focus on the decimal number located at a path in an object
|
fun.optic.Lens<JsObj,BigDecimal> |
JsOptics.JsObjLenses.decimalNum(JsPath path)
lens that focus on a decimal number located at a path in an object.
|
fun.optic.Option<JsObj,BigDecimal> |
JsOptics.JsObjOptional.decimalNum(String key)
optional that focus on the decimal number located at a key in an object
|
fun.optic.Lens<JsObj,BigDecimal> |
JsOptics.JsObjLenses.decimalNum(String key)
lens that focus on a decimal number located at a key in an object.
|
fun.optic.Option<JsObj,Double> |
JsOptics.JsObjOptional.doubleNum(JsPath path)
optional that focus on the double number located at a path in an object
|
fun.optic.Lens<JsObj,Double> |
JsOptics.JsObjLenses.doubleNum(JsPath path)
lens that focus on a double number located at a path in an object.
|
fun.optic.Option<JsObj,Double> |
JsOptics.JsObjOptional.doubleNum(String key)
optional that focus on the double number located at a key in an object
|
fun.optic.Lens<JsObj,Double> |
JsOptics.JsObjLenses.doubleNum(String key)
lens that focus on a double number located at a key in an object.
|
fun.optic.Option<JsObj,Instant> |
JsOptics.JsObjOptional.instant(JsPath path)
optional that focus on the instant located at a path in an object
|
fun.optic.Lens<JsObj,Instant> |
JsOptics.JsObjLenses.instant(JsPath path)
lens that focus on an instant located at a path in an object.
|
fun.optic.Option<JsObj,Instant> |
JsOptics.JsObjOptional.instant(String key)
optional that focus on the instant located at a key in an object
|
fun.optic.Lens<JsObj,Instant> |
JsOptics.JsObjLenses.instant(String key)
lens that focus on an instant located at a key in an object.
|
fun.optic.Option<JsObj,BigInteger> |
JsOptics.JsObjOptional.integralNum(JsPath path)
optional that focus on the integral number located at a path in an object
|
fun.optic.Lens<JsObj,BigInteger> |
JsOptics.JsObjLenses.integralNum(JsPath path)
lens that focus on a integral number located at a path in an object.
|
fun.optic.Option<JsObj,BigInteger> |
JsOptics.JsObjOptional.integralNum(String key)
optional that focus on the bigint number located at a path in an object
|
fun.optic.Lens<JsObj,BigInteger> |
JsOptics.JsObjLenses.integralNum(String key)
lens that focus on a integral number located at a key in an object.
|
fun.optic.Option<JsObj,Integer> |
JsOptics.JsObjOptional.intNum(JsPath path)
optional that focus on the integer number located at a path in an object
|
fun.optic.Lens<JsObj,Integer> |
JsOptics.JsObjLenses.intNum(JsPath path)
lens that focus on a integer number located at a path in an object.
|
fun.optic.Option<JsObj,Integer> |
JsOptics.JsObjOptional.intNum(String key)
optional that focus on the integer number located at a key in an object
|
fun.optic.Lens<JsObj,Integer> |
JsOptics.JsObjLenses.intNum(String key)
lens that focus on a integer number located at a key in an object.
|
fun.optic.Option<JsObj,Long> |
JsOptics.JsObjOptional.longNum(JsPath path)
optional that focus on the long number located at a path in an object
|
fun.optic.Lens<JsObj,Long> |
JsOptics.JsObjLenses.longNum(JsPath path)
lens that focus on a long number located at a path in an object.
|
fun.optic.Option<JsObj,Long> |
JsOptics.JsObjOptional.longNum(String key)
optional that focus on the long number located at a key in an object
|
fun.optic.Lens<JsObj,Long> |
JsOptics.JsObjLenses.longNum(String key)
lens that focus on a long number located at a key in an object.
|
fun.optic.Lens<JsArray,JsObj> |
JsOptics.JsArrayLenses.obj(int index)
lens that focus on the json object located at an index in an array
|
fun.optic.Option<JsArray,JsObj> |
JsOptics.JsArrayOptionals.obj(int index)
optional that focus on the json object located at an index in an array
|
fun.optic.Lens<JsArray,JsObj> |
JsOptics.JsArrayLenses.obj(JsPath path)
lens that focus on the JSON object located at a path in an array
|
fun.optic.Option<JsArray,JsObj> |
JsOptics.JsArrayOptionals.obj(JsPath path)
optional that focus on the object located at a path in an array
|
fun.optic.Option<JsObj,JsObj> |
JsOptics.JsObjOptional.obj(JsPath path)
optional that focus on the object located at a path in an object
|
fun.optic.Option<JsObj,JsObj> |
JsOptics.JsObjOptional.obj(JsPath path)
optional that focus on the object located at a path in an object
|
fun.optic.Lens<JsObj,JsObj> |
JsOptics.JsObjLenses.obj(JsPath path)
lens that focus on a json object located at a path in an object.
|
fun.optic.Lens<JsObj,JsObj> |
JsOptics.JsObjLenses.obj(JsPath path)
lens that focus on a json object located at a path in an object.
|
fun.optic.Option<JsObj,JsObj> |
JsOptics.JsObjOptional.obj(String key)
optional that focus on the object located at a key in an object
|
fun.optic.Option<JsObj,JsObj> |
JsOptics.JsObjOptional.obj(String key)
optional that focus on the object located at a key in an object
|
fun.optic.Lens<JsObj,JsObj> |
JsOptics.JsObjLenses.obj(String key)
lens that focus on a json object located at a key in an object.
|
fun.optic.Lens<JsObj,JsObj> |
JsOptics.JsObjLenses.obj(String key)
lens that focus on a json object located at a key in an object.
|
fun.optic.Option<JsObj,String> |
JsOptics.JsObjOptional.str(JsPath path)
optional that focus on the string located at a path in an object
|
fun.optic.Lens<JsObj,String> |
JsOptics.JsObjLenses.str(JsPath path)
lens that focus on a string located at a path in an object.
|
fun.optic.Option<JsObj,String> |
JsOptics.JsObjOptional.str(String key)
optional that focus on the string located at a key in an object
|
fun.optic.Lens<JsObj,String> |
JsOptics.JsObjLenses.str(String key)
lens that focus on a string located at a key in an object.
|
fun.optic.Lens<JsObj,JsValue> |
JsOptics.JsObjLenses.value(JsPath path)
lens that focus on a value located at a path in an object.
|
fun.optic.Lens<JsObj,JsValue> |
JsOptics.JsObjLenses.value(String key)
lens that focus on a value located at a key in an object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
JsObj.equals(JsObj that,
JsArray.TYPE ARRAY_AS)
Checks if this `JsObj` is equal to another `JsObj` considering how arrays are treated (as lists, sets, or multisets).
|
JsObj |
JsObj.intersection(JsObj that,
JsArray.TYPE ARRAY_AS) |
JsObj |
JsObj.union(JsObj that,
JsArray.TYPE ARRAY_AS) |
Modifier and Type | Method and Description |
---|---|
JsArray |
JsArray.filterObjs(BiPredicate<? super JsPath,? super JsObj> filter) |
JsObj |
JsObj.filterObjs(BiPredicate<? super JsPath,? super JsObj> filter) |
T |
Json.filterObjs(BiPredicate<? super JsPath,? super JsObj> filter)
Filters all the pair of jsons of this json, removing those that don't satisfy the given predicate.
|
JsArray |
JsArray.filterObjs(Predicate<? super JsObj> filter) |
JsObj |
JsObj.filterObjs(Predicate<? super JsObj> filter) |
T |
Json.filterObjs(Predicate<? super JsObj> filter)
Filters all the pair of jsons of this json, removing those that don't ifPredicateElse the predicate.
|
JsObj |
JsArray.getObj(int index,
Supplier<JsObj> orElse)
Retrieves the value located at the specified index within the JSON-like array and attempts to
interpret it as a JSON object (JsObj).
|
default JsObj |
Json.getObj(JsPath path,
Supplier<JsObj> orElse)
Returns the object located at the given path or the default value provided if it doesn't exist or it's not an object.
|
JsObj |
JsObj.getObj(String key,
Supplier<JsObj> orElse)
Returns the json object located at the given key or the default value provided
if it doesn't exist, or it's not an object.
|
default boolean |
JsValue.isObj(Predicate<JsObj> predicate)
Returns true if this element is a JsObj and satisfies the given predicate.
|
JsArray |
JsArray.mapObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn) |
JsObj |
JsObj.mapObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn) |
T |
Json.mapObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn)
Maps all the JSON objects of this JSON, traversing the entire JSON if necessary.
|
JsArray |
JsArray.mapObjs(Function<? super JsObj,? extends JsValue> fn) |
JsObj |
JsObj.mapObjs(Function<? super JsObj,? extends JsValue> fn) |
T |
Json.mapObjs(Function<? super JsObj,? extends JsValue> fn)
Maps all the JSON objects of this JSON, traversing the entire JSON if necessary.
|
Modifier and Type | Method and Description |
---|---|
Supplier<JsObj> |
JsObjGen.apply(Random seed) |
fun.gen.Gen<JsObj> |
JsObjGen.suchThat(JsObjSpec spec)
Creates a generator that generates values from this gen that satisfy the specified spec.
|
fun.gen.Gen<JsObj> |
JsObjGen.suchThat(JsObjSpec spec,
int tries)
Creates a generator that generates values from this gen that satisfy the specified spec.
|
fun.gen.Gen<JsObj> |
JsObjGen.suchThatNo(JsObjSpec spec)
Creates a generator that generates values from this gen that don't satisfy the specified spec.
|
fun.gen.Gen<JsObj> |
JsObjGen.suchThatNo(JsObjSpec spec,
int tries)
Creates a generator that generates values from this gen that don't satisfy the specified spec.
|
Modifier and Type | Method and Description |
---|---|
JsObj |
JsObjSpecParser.parse(byte[] bytes)
Parses an array of bytes into a JSON object that must conform to the spec of the parser.
|
JsObj |
JsObjSpecParser.parse(InputStream inputstream)
Parses an input stream of bytes into a JSON object that must conform to the spec of the parser.
|
JsObj |
JsObjSpecParser.parse(String str)
Parses a string into a JSON object that must conform to the spec of the parser.
|
JsObj |
JsIO.parseToJsObj(byte[] bytes)
Parses the given array of bytes into an immutable and persistent JSON object.
|
Modifier and Type | Method and Description |
---|---|
static JsArraySpec |
JsSpecs.arrayOfObj(Predicate<JsObj> predicate)
Returns a specification for a non-nullable array of objects, where each element of the array satisfies
the given predicate.
|
static JsArraySpec |
JsSpecs.arrayOfObj(Predicate<JsObj> predicate,
int minLength,
int maxLength)
Returns a specification for a non-nullable array of objects, where each element of the array satisfies
the given predicate.
|
static JsSpec |
JsSpecs.obj(Predicate<JsObj> predicate)
Returns a specification for a non-nullable JSON object that satisfies the given predicate.
|
JsObjSpec |
JsObjSpec.suchThat(Predicate<JsObj> predicate)
Adds a condition that the JSON object must meet.
|
Copyright © 2023. All rights reserved.