ezjson_parse

Syntax

native EzJSON:ezjson_parse(const string[], bool:is_file = false, bool:with_comments = false);

Usage

Parameter Description
string
String to parse
is_file
True to treat string param as filename, false otherwise
with_comments
True if parsing JSON includes comments (it will ignore them), false otherwise

Description

Parses JSON string or a file that contains JSON.

Note

Needs to be freed using ezjson_free() native.

Return

EzJSON handle, EzInvalid_JSON if error occurred