grip_json_validate
Validates json by checking if object have identically named fields with matching types.
Syntax
native bool:grip_json_validate(const GripJSONValue:schema, const GripJSONValue:value)
Usage
| schema | JSON handle |
| value | JSON handle |
Return
True — if passed value is valid, false otherwise
Notes
Schema {"name":"", "age":0} will validate
In case of arrays, only first value in schema
Empty objects ({}) validate all objects,
Errors
If a schema handle or value handle is invalid
Defined in
grip.inc
at line 396
.
This documentation was automatically generated from source.