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.