Set the JSON value.

Syntax

json_t* json_pack(
    const char* fmt,
    ...
);

Parameters

fmt
[in] Format string

Return value

New reference.

Remarks

Build a new JSON value according to the format string fmt. For each format specifier (except for {}[]n), one or more arguments are consumed and used to build the corresponding value. Returns NULL on error.

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