native

json_object_get_string

Syntax

native json_object_get_string(const JSON:object, const name[], buffer[], maxlen, bool:dot_not = false);

Description

Gets string data from the object.

Parameters

object Object handle
name Key name
buffer Buffer to copy string to
maxlen Maximum size of the buffer
dot_not True to use dot notation, false to not

Note

If dot notation is used some values may be inaccessible
because valid names in JSON can contain dots.

Return

The number of cells written to the buffer

Error

If passed handle is not a valid object