Create a Json
value representing a JSON array from values.
Create a Json
value representing a JSON number from a BigDecimal
.
Create a Json
value representing a JSON number from a BigInt
.
Create a Json
value representing a JSON boolean.
Try to create a Json
value representing a JSON number from a Double
.
Try to create a Json
value representing a JSON number from a Double
.
The result is empty if the argument cannot be represented as a JSON number.
Create a Json
value representing a JSON number or null from a Double
.
Create a Json
value representing a JSON number or null from a Double
.
The result is a JSON null if the argument cannot be represented as a JSON number.
Create a Json
value representing a JSON number or string from a Double
.
Create a Json
value representing a JSON number or string from a Double
.
The result is a JSON string if the argument cannot be represented as a JSON number.
Create a Json
value representing a JSON object from a collection of key-value pairs.
Create a Json
value representing a JSON number from an Int
.
Create a Json
value representing a JSON number from a JsonNumber.
Create a Json
value representing a JSON object from a JsonObject.
Create a Json
value representing a JSON number from a Long
.
Create a Json
value representing a JSON string.
Create a Json
value representing a JSON string.
Note that this does not parse the argument.
Create a Json
value representing a JSON array from a collection of values.
Create a Json
value representing a JSON object from key-value pairs.
(Since version 0.4.0) Use Null
(Since version 0.4.0) Use arr
(Since version 0.4.0) Use fromBigDecimal
(Since version 0.4.0) Use fromBoolean
(Since version 0.4.0) Use Null
(Since version 0.4.0) Use fromInt
(Since version 0.4.0) Use fromLong
(Since version 0.4.0) Use fromDouble
(Since version 0.4.0) Use fromDoubleOrNull
(Since version 0.4.0) Use fromDoubleOrString
(Since version 0.4.0) Use fromString