Uses of Class
jsonvalues.JsObj
Packages that use JsObj
Package
Description
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.
This package contains a set of generators for creating JSON-like data structures using the `jsonvalues` library.
The `jsonvalues.spec` package provides classes and interfaces for defining and working with JSON specifications (specs) and parsers.
-
Uses of JsObj in jsonvalues
Fields in jsonvalues with type parameters of type JsObjModifier and TypeFieldDescriptionJsObj.prism
A Prism that allows you to view aJsValue
as aJsObj
if it represents an object, or as an empty optional if it's not an object.Methods in jsonvalues that return JsObjModifier and TypeMethodDescriptionDeletes the specified key from the JSON object.static JsObj
JsObj.empty()
Returns the singleton empty JSON objectJsObj.filterKeys
(BiPredicate<? super JsPath, ? super JsValue> filter) JsObj.filterKeys
(Predicate<? super String> filter) JsObj.filterObjs
(BiPredicate<? super JsPath, ? super JsObj> filter) JsObj.filterObjs
(Predicate<? super JsObj> filter) JsObj.filterValues
(BiPredicate<? super JsPath, ? super JsPrimitive> filter) JsObj.filterValues
(Predicate<? super JsPrimitive> filter) 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).Retrieves the value located at the specified index within the JSON-like array and attempts to interpret it as a JSON object (JsObj).Returns the json object located at the given key or null if it doesn't exist, or it's not an object.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 JsObj
Returns the object located at the given path or null if it doesn't exist, or it's not an object.default JsObj
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.intersection
(JsObj that, JsArray.TYPE ARRAY_AS) JsObj.mapKeys
(BiFunction<? super JsPath, ? super JsValue, String> fn) JsObj.mapObjs
(BiFunction<? super JsPath, ? super JsObj, ? extends JsValue> fn) JsObj.mapValues
(BiFunction<? super JsPath, ? super JsPrimitive, ? extends JsValue> fn) JsObj.mapValues
(Function<? super JsPrimitive, ? extends JsValue> fn) static JsObj
Static factory method to create one-element JSON objectstatic JsObj
Static factory method to create two-element JSON objectstatic JsObj
Static factory method to create three-element JSON objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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
Static factory method to create one-element JSON objectstatic JsObj
Static factory method to create two-element JSON objectstatic JsObj
Static factory method to create three-element JSON objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic 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 objectstatic JsObj
JsObj.parse
(byte[] bytes) Parses the given array of bytes into an immutable and persistent JSON object.static JsObj
Parses the given string into an immutable and persistent JSON object.Sets the value of the specified key in this JSON object to a boolean value.Sets the value of the specified key in this JSON object to an integer value.Sets the value of the specified key in this JSON object to a long value.Sets the value of the specified key in this JSON object to a Double value.Sets the value of the specified key in this JSON object to a string value.JsObj.set
(String key, BigDecimal value) Sets the value of the specified key in this JSON object to a BigDecimal value.Sets the value of the specified key in this JSON object to an Instant value.Sets the specified key to the given JSON value.Sets the value of the specified path in this JSON object to a boolean value.Sets the value of the specified path in this JSON object to an integer value.Sets the value of the specified path in this JSON object to a long value.Sets the value of the specified path in this JSON object to a Double value.Sets the value of the specified path in this JSON object to a string value.JsObj.set
(JsPath path, BigDecimal value) Sets the value of the specified path in this JSON object to a BigDecimal value.Sets the value of the specified path in this JSON object to an Instant value.default JsObj
JsValue.toJsObj()
Returns this JsValue as a JsObj.JsObj.union
(JsObj that, JsArray.TYPE ARRAY_AS) Methods in jsonvalues that return types with arguments of type JsObjModifier and TypeMethodDescriptionlens that focus on a json array located at a key in an object.lens that focus on a json object located at a path in an object.optional that focus on the array located at a key in an objectoptional that focus on the array located at a path in an objectfun.optic.Lens<JsObj,
byte[]> lens that focus on an array of bytes located at a key in an object.fun.optic.Lens<JsObj,
byte[]> lens that focus on an array of bytes located at a path in an object.fun.optic.Option<JsObj,
byte[]> optional that focus on the array of bytes located at a key in an objectfun.optic.Option<JsObj,
byte[]> optional that focus on the array of bytes located at a path in an objectlens that focus on a boolean located at a path in an object.lens that focus on a boolean located at a path in an object.optional that focus on the boolean located at a key in an objectoptional that focus on the boolean located at a path in an objectfun.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.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 objectfun.optic.Option<JsObj,
BigDecimal> JsOptics.JsObjOptional.decimalNum
(JsPath path) optional that focus on the decimal number located at a path in an objectlens that focus on a double number located at a key in an object.lens that focus on a double number located at a path in an object.optional that focus on the double number located at a key in an objectoptional that focus on the double number located at a path in an objectlens that focus on an instant located at a key in an object.lens that focus on an instant located at a path in an object.optional that focus on the instant located at a key in an objectoptional that focus on the instant located at a path in an objectfun.optic.Lens<JsObj,
BigInteger> JsOptics.JsObjLenses.integralNum
(String key) lens that focus on an integral number located at a key in an object.fun.optic.Lens<JsObj,
BigInteger> JsOptics.JsObjLenses.integralNum
(JsPath path) lens that focus on an 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 objectfun.optic.Option<JsObj,
BigInteger> JsOptics.JsObjOptional.integralNum
(JsPath path) optional that focus on the integral number located at a path in an objectlens that focus on an integer number located at a key in an object.lens that focus on an integer number located at a path in an object.optional that focus on the integer number located at a key in an objectoptional that focus on the integer number located at a path in an objectlens that focus on a long number located at a key in an object.lens that focus on a long number located at a path in an object.optional that focus on the long number located at a key in an objectoptional that focus on the long number located at a path in an objectJsOptics.JsArrayLenses.obj
(int index) lens that focus on the json object located at an index in an arraylens that focus on the JSON object located at a path in an arrayJsOptics.JsArrayOptionals.obj
(int index) optional that focus on the json object located at an index in an arrayoptional that focus on the object located at a path in an arraylens that focus on a json object located at a key in an object.lens that focus on a json object located at a key in an object.lens that focus on a json object located at a path in an object.lens that focus on a json object located at a path in an object.optional that focus on the object located at a key in an objectoptional that focus on the object located at a key in an objectoptional that focus on the object located at a path in an objectoptional that focus on the object located at a path in an objectlens that focus on a string located at a key in an object.lens that focus on a string located at a path in an object.optional that focus on the string located at a key in an objectoptional that focus on the string located at a path in an objectlens that focus on a value located at a key in an object.lens that focus on a value located at a path in an object.Methods in jsonvalues with parameters of type JsObjModifier and TypeMethodDescriptionboolean
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.intersection
(JsObj that, JsArray.TYPE ARRAY_AS) JsObj.union
(JsObj that, JsArray.TYPE ARRAY_AS) Method parameters in jsonvalues with type arguments of type JsObjModifier and TypeMethodDescriptionJsArray.filterObjs
(BiPredicate<? super JsPath, ? super JsObj> filter) JsArray.filterObjs
(Predicate<? super JsObj> filter) JsObj.filterObjs
(BiPredicate<? super JsPath, ? super JsObj> filter) JsObj.filterObjs
(Predicate<? super JsObj> filter) 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.Json.filterObjs
(Predicate<? super JsObj> filter) Filters all the pair of jsons of this json, removing those that don't ifPredicateElse the predicate.Retrieves the value located at the specified index within the JSON-like array and attempts to interpret it as a JSON object (JsObj).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 JsObj
Returns the object located at the given path or the default value provided if it doesn't exist, or it's not an object.default boolean
Returns true if this element is a JsObj and satisfies the given predicate.JsArray.mapObjs
(BiFunction<? super JsPath, ? super JsObj, ? extends JsValue> fn) JsObj.mapObjs
(BiFunction<? super JsPath, ? super JsObj, ? extends JsValue> fn) Json.mapObjs
(BiFunction<? super JsPath, ? super JsObj, ? extends JsValue> fn) Maps all the JSON objects of this JSON, traversing the entire JSON if necessary.Maps all the JSON objects of this JSON, traversing the entire JSON if necessary. -
Uses of JsObj in jsonvalues.gen
Methods in jsonvalues.gen that return types with arguments of type JsObjModifier and TypeMethodDescriptionfun.gen.Gen<JsObj>
Creates a generator that generates values from this gen that satisfy the specified spec.fun.gen.Gen<JsObj>
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. -
Uses of JsObj in jsonvalues.spec
Methods in jsonvalues.spec that return JsObjModifier and TypeMethodDescriptionJsObjSpecParser.parse
(byte[] bytes) Parses an array of bytes into a JSON object that must conform to the spec of the parser.JsObjSpecParser.parse
(InputStream inputstream) Parses an input stream of bytes into a JSON object that must conform to the spec of the parser.Parses a string into a JSON object that must conform to the spec of the parser.JsIO.parseToJsObj
(byte[] bytes) Parses the given array of bytes into an immutable and persistent JSON object.Method parameters in jsonvalues.spec with type arguments of type JsObjModifier and TypeMethodDescriptionstatic 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
Returns a specification for a non-nullable JSON object that satisfies the given predicate.Adds a condition that the JSON object must meet.