api / tv.twelvetone.json / JsonValue / valueOf

valueOf

fun valueOf(value: Int): JsonValue
Deprecated: Use <code>Json.value()</code> instead

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 valueOf(value: Long): JsonValue
Deprecated: Use <code>Json.value()</code> instead

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 valueOf(value: Float): JsonValue
Deprecated: Use <code>Json.value()</code> instead

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 valueOf(value: Double): JsonValue
Deprecated: Use <code>Json.value()</code> instead

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 valueOf(string: String): JsonValue
Deprecated: Use <code>Json.value()</code> instead

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 valueOf(value: Boolean): JsonValue
Deprecated: Use <code>Json.value()</code> instead

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