Get the JSON value.

Syntax

int json_unpack(
    json_t* root,
    const char* fmt,
    ...
);

Parameters

root
[in] JSON value
fmt
[in] Format string

Return value

Returns 0 on success and -1 on failure.

Remarks

Validate and unpack the JSON value root according to the format string fmt. Returns 0 on success and -1 on failure.

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