json_parse
- Синтаксис
-
native JSON:json_parse(const string[], bool:is_file = false, bool:with_comments = false);
Переменная | Описание |
---|---|
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 |
- Описание
- Parses JSON string or a file that contains JSON.
- Пометка
-
Needs to be freed using json_free() native.
- Возвращает
- JSON handle, Invalid_JSON if error occurred