JSONFriendly

interface JSONFriendly

A class can implement JSONFriendly to enable JSON serialization of its instances.

Author

Todd L Smith

Functions

Link copied to clipboard
abstract fun writeTo(writer: JSONWriter)

Emit a JSON representation of the receiver onto the specified writer.

Properties

Link copied to clipboard
open val jsonFormattedString: String

The formatted JSON String of this JSONFriendly as the top-level JSON element.

Link copied to clipboard
open val jsonPrettyPrintedFormattedString: String

The pretty-printed formatted JSON String of this JSONFriendly as the top-level JSON element.

Inheritors

Link copied to clipboard