open fun toString(): String
Returns the JSON string for this value in its minimal form, without any additional whitespace. The result is guaranteed to be a valid input for the method Json.parse and to create a value that is equal to this object.
Return
a JSON string that represents this value
fun toString(config: WriterConfig): String
Returns the JSON string for this value using the given formatting.
config
- a configuration that controls the formatting or null
for the minimal form
Return
a JSON string that represents this value