kiss
JSON
JSON
()
Create empty JSON object.
as
(ClassM
type
)
M
ClassM
type
)M |
|
Class type |
A model type. |
M |
A created model. |
Data mapping to the specified model.
as
(ModelM
model
)
M
ModelM
model
)M |
|
Model model |
A model type. |
M |
A created model. |
Data mapping to the specified model.
as
(M
value
)
M
M
value
)M |
|
M value |
A model. |
M |
A specified model. |
Data mapping to the specified model.
asMap
(ClassM
type
)
MapString
, M
ClassM
type
)String
, M
M |
|
Class type |
A model type. |
Map |
The key-value pair. |
Data mapping to the Map
with String
key and your specified model.
has
(String
key
)
boolean
String
key
)String key |
A target key. |
boolean |
A result. |
Check the direct child which has the specified key.
has
(String
key
, Object
value
)
boolean
String
key
, Object
value
)String key |
A target key. |
Object value |
An expected value. |
boolean |
A result. |
Check the direct child value with the specified key.
get
(String
key
)
JSON
String
key
)String key |
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
(ClassT
type
, String
key
)
T
ClassT
type
, String
key
)T |
|
Class type |
A value type to find. |
String key |
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
(String
key
)
String
String
key
)String key |
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
(String
key
, Object
value
)
JSON
String
key
, Object
value
)String key |
A key. |
Object value |
A value. |
JSON |
Chainable API. |
Set the direct child value with the specified key.
find
(String
path
)
ListJSON
String
path
)JSON
String path |
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
(ClassT
type
, String
path
)
ListT
ClassT
type
, String
path
)T
T |
|
Class type |
The conversion type. |
String path |
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 |