native
json_object_set_value
Syntax
native bool:json_object_set_value(JSON:object, const name[], const JSON:value, bool:dot_not = false);
Description
Sets a value in the object.
Parameters
| object | Object handle |
|---|---|
| name | Key name |
| value | JSON handle to set |
| 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.
Note
It also removes the old value if any.
Return
True if succeed, false otherwise
Error
If passed handle is not a valid object