Sinobu

kiss

JSON

JSON()

Create empty JSON object.

as(ClassMtype)M

M
ClassMtype

A model type.

M

A created model.

Data mapping to the specified model.

as(ModelMmodel)M

M
ModelMmodel

A model type.

M

A created model.

Data mapping to the specified model.

as(Mvalue)M

M
Mvalue

A model.

M

A specified model.

Data mapping to the specified model.

asMap(ClassMtype)MapString, M

M
ClassMtype

A model type.

MapString, M

The key-value pair.

Data mapping to the Map with String key and your specified model.

has(Stringkey)boolean

Stringkey

A target key.

boolean

A result.

Check the direct child which has the specified key.

has(Stringkey, Objectvalue)boolean

Stringkey

A target key.

Objectvalue

An expected value.

boolean

A result.

Check the direct child value with the specified key.

get(Stringkey)JSON

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

T
ClassTtype

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

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

A key.

Objectvalue

A value.

JSON

Chainable API.

Set the direct child value with the specified key.

find(Stringpath)ListJSON

Stringpath

A property path.

ListJSON

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

T
ClassTtype

The conversion type.

Stringpath

A property path.

ListT

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