kiss
JSON
JSON()
Create empty JSON object.
as(ClassMtype)M
ClassMtype)M |
|
Classtype |
A model type. |
M |
A created model. |
Data mapping to the specified model.
as(ModelMmodel)M
ModelMmodel)M |
|
Modelmodel |
A model type. |
M |
A created model. |
Data mapping to the specified model.
as(Mvalue)M
Mvalue)M |
|
Mvalue |
A model. |
M |
A specified model. |
Data mapping to the specified model.
asMap(ClassMtype)MapString, M
ClassMtype)String, MM |
|
Classtype |
A model type. |
Map |
The key-value pair. |
Data mapping to the Map with String key and your specified model.
has(Stringkey)boolean
Stringkey)Stringkey |
A target key. |
boolean |
A result. |
Check the direct child which has the specified key.
has(Stringkey, Objectvalue)boolean
Stringkey, Objectvalue)Stringkey |
A target key. |
Objectvalue |
An expected value. |
boolean |
A result. |
Check the direct child value with the specified key.
get(Stringkey)JSON
Stringkey)Stringkey |
A key for value to find. |
JSON |
An associated value. |
Get the direct child value as your type with the specified key. Unknown key and object key will return null.
get(ClassTtype, Stringkey)T
ClassTtype, Stringkey)T |
|
Classtype |
A value type to find. |
Stringkey |
A key for value to find. |
T |
An associated value. |
Get the direct child value as your type with the specified key. Unknown key and object key will return null.
text(Stringkey)String
Stringkey)Stringkey |
A key for value to find. |
String |
An associated value. |
Get the direct child value as your type with the specified key. Unknown key and object key will return null.
set(Stringkey, Objectvalue)JSON
Stringkey, Objectvalue)Stringkey |
A key. |
Objectvalue |
A value. |
JSON |
Chainable API. |
Set the direct child value with the specified key.
find(Stringpath)ListJSON
Stringpath)JSONStringpath |
A property path. |
List |
A result set. |
Get all objects pointed to by the property path starting from this JSON. The property path can use the property name and the wildcard "*".
find(ClassTtype, Stringpath)ListT
ClassTtype, Stringpath)TT |
|
Classtype |
The conversion type. |
Stringpath |
A property path. |
List |
A result set. |
Get all objects pointed to by the property path starting from this JSON. The property path can use the property name and the wildcard "*".
toString()String
String |