das2C
das core C utilities (v3)
Public Member Functions | Data Fields
DasJdo Struct Reference

JSON Dom Element. More...

#include <das2/json.h>

Public Member Functions

DAS_API const DasJdoDasJdo_get (const DasJdo *pThis, const char *sRelPath)
 Given a DOM path retrieve a JSON element. More...
 
DAS_API void * DasJdo_writeMinified (const DasJdo *pThis, size_t *out_size)
 Write out a minified JSON utf-8 string. More...
 

Data Fields

void * value
 a pointer to either a das_json_str, das_json_num, das_json_dict, or das_json_ary. More...
 
size_t type
 must be one of das_json_type_e. More...
 

Detailed Description

JSON Dom Element.

Field Documentation

◆ value

void* value

a pointer to either a das_json_str, das_json_num, das_json_dict, or das_json_ary.

Should be cast to the appropriate struct type based on what the type parameter

◆ type

size_t type

must be one of das_json_type_e.

If type is dasj_objtype_true, dasj_objtype_false, or dasj_objtype_null, payload will be NULL


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