anystring2json()
#
Convert any string to a JSON object. Works with json_t *
.
Prototype
PUBLIC json_t *anystring2json(
const char *string,
int verbose
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The string to convert to JSON. |
|
|
The verbosity level for logging. |
Return Value
Returns a json_t *
object created from the string, or NULL
on failure.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples