Value.toJson

Create a JSON string of value serialization. If indent is 0, the resulting JSON will not contain newlines. The size of the indent is clamped to 10 spaces.

class Value
string
toJson
(
uint indent
)

Parameters

indent uint

The number of spaces to indent when nesting.

Return Value

Type: string

a null-terminated JSON string with serialization of value