kw_collapse()

kw_collapse()#

Collapse a JSON object, converting child objects and arrays into string representations. Works with json_t *.

Prototype

PUBLIC json_t *kw_collapse(
    json_t      *kw
);
        

Parameters

Key

Type

Description

kw

json_t *

The JSON object to collapse.


Return Value

Returns a new json_t * object with collapsed child objects and arrays, or NULL on failure.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples