Returns the JSON content as a string.

Syntax

char *json_dumps(
    const json_t *json,
    size_t flags
);

Parameters

json
[in] JSON value
flags
[in] encoding flag

Return value

Returns the JSON representation of json as a string, or NULL on error.

Remarks

Returns the JSON representation of json as a string, or NULL on error. flag is described in other page. The return value must be freed by the caller using free().

See the API Reference below for more information.

Requirements

Header file:
lib.h : System E6.0 or later.
jansson.h
jansson_config.h
jansson_log.h
Library file:
libJansson.a
libSTARTUPOPH5000.a : System E6.0 or later.

See also

Last updated: 2022/01/26