json2uglystr()
#
Convert a JSON object to a compact, unformatted JSON string. Works with json_t *
.
Prototype
PUBLIC char *json2uglystr(
json_t *jn
);
Parameters
Key |
Type |
Description |
---|---|---|
|
The JSON object to convert to a string. |
Return Value
Returns a newly allocated string containing the compact JSON representation, or NULL
on failure.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples