native

json_serial_size

Syntax

native json_serial_size(const JSON:value, bool:pretty = false, bool:null_byte = false);

Description

Gets size of serialization.

Parameters

value JSON handle
pretty True to count size for pretty format, false to not
null_byte True to include null byte, false to not

Return

Size of serialized string

Error

If passed handle is not a valid value