fun value(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 value(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 value(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 value(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 value(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 value(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