api / tv.twelvetone.json / Json / value

value

fun value(value: Int): JsonValue

Returns a JsonValue instance that represents the given int value.

Parameters

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.

Parameters

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.

Parameters

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.

Parameters

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.

Parameters

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.

Parameters

value - the value to get a JSON representation for

Return
a JSON value that represents the given value