native

json_serial_to_string

Syntax

native json_serial_to_string(const JSON:value, buffer[], maxlen, bool:pretty = false);

Description

Copies serialized string to the buffer.

Parameters

value JSON handle
buffer Buffer to copy string to
maxlen Maximum size of the buffer
pretty True to format pretty JSON string, false to not

Return

The number of cells written to the buffer

Error

If passed handle is not a valid value