ucx
UAP Common Extensions
Loading...
Searching...
No Matches
Data Fields
cx_json_value_s Struct Reference

Structure for a JSON value. More...

#include <json.h>

Data Fields

const CxAllocatorallocator
 The allocator with which the value was allocated.
 
CxJsonValueType type
 The type of this value.
 
union { 
 
   CxJsonArray   array 
 The array data if type is CX_JSON_ARRAY.
 
   CxJsonObject   object 
 The object data if type is CX_JSON_OBJECT.
 
   CxJsonString   string 
 The string data if type is CX_JSON_STRING.
 
   CxJsonInteger   integer 
 The integer if type is CX_JSON_INTEGER.
 
   CxJsonNumber   number 
 The number if type is CX_JSON_NUMBER.
 
   CxJsonLiteral   literal 
 The literal type if type is CX_JSON_LITERAL.
 
value 
 The value data.
 

Detailed Description

Structure for a JSON value.

Field Documentation

◆ allocator

const CxAllocator* cx_json_value_s::allocator

The allocator with which the value was allocated.

Required for recursively deallocating memory of objects and arrays.

◆ type

CxJsonValueType cx_json_value_s::type

The type of this value.

Specifies how the value union shall be resolved.


The documentation for this struct was generated from the following file: