Determine the JSON boolean value true.

Syntax

int json_is_true(
    const json_t* json
);

Parameters

json
[in] JSON value

Return value

Returns true / false for values of the given type.

Remarks

Returns true (non-zero) for values of the given type, and false (zero) for values of other types and for NULL.

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