Used throughout the library to represent all JSON values.

Syntax

typedef struct json_t
{
  json_type type;
  volatile size_t refcount;
} json_t;

Members

type
Set the type of JSON value to keep.
TypeExplanation
JSON_OBJECTJSON object
JSON_ARRAYJSON array
JSON_STRINGJSON string
JSON_INTEGERJSON integer
JSON_REALJSON real
JSON_TRUEJSON boolean value true
JSON_FALSEJSON boolean value false
JSON_NULLJSON null
refcount
The reference count of the value is set.

Remarks

Used throughout the library to represent all JSON values. It always contains the type of the JSON value it holds and the value’s reference count.

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.

Reference

See below for details.



Last updated: 2022/01/26