fun valueOf(value: Int): JsonValue
Returns a JsonValue instance that represents the given int
value.
value
- the value to get a JSON representation for
Return
a JSON value that represents the given value
fun valueOf(value: Long): JsonValue
Returns a JsonValue instance that represents the given long
value.
value
- the value to get a JSON representation for
Return
a JSON value that represents the given value
fun valueOf(value: Float): JsonValue
Returns a JsonValue instance that represents the given float
value.
value
- the value to get a JSON representation for
Return
a JSON value that represents the given value
fun valueOf(value: Double): JsonValue
Returns a JsonValue instance that represents the given double
value.
value
- the value to get a JSON representation for
Return
a JSON value that represents the given value
fun valueOf(string: String): JsonValue
Returns a JsonValue instance that represents the given string.
string
- the string to get a JSON representation for
Return
a JSON value that represents the given string
fun valueOf(value: Boolean): JsonValue
Returns a JsonValue instance that represents the given boolean
value.
value
- the value to get a JSON representation for
Return
a JSON value that represents the given value