json2str()

json2str()#

Convert a JSON object to a formatted JSON string. Works with json_t *.

Prototype

PUBLIC char *json2str(
    json_t      *jn
);
        

Parameters

Key

Type

Description

jn

json_t *

The JSON object to convert to a string.


Return Value

Returns a newly allocated string containing the formatted 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