Value.toJson

string toJson(uint indent)

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.

Parameters

indentThe number of spaces to indent when nesting.

Returns

a null-terminated JSON string with serialization of value