test_json()
#
Test if a JSON object meets specific conditions. Works with json_t *
.
Prototype
PUBLIC int test_json(
json_t *json,
int verbose
);
Parameters
Key |
Type |
Description |
---|---|---|
|
The JSON object to test. |
|
|
|
The verbosity level for the test output. |
Return Value
Returns 0
on success, or a negative value on failure.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples