toJSON

open fun toJSON(): JsAny(source)

Returns a JSON-serializable object representing the primitive. This encoding is not memory-efficient, and should generally be used for debugging and testing.

Return

JSON-serializable object.

See also