Objectively
Ultra-lightweight object oriented framework for GNU C.
Loading...
Searching...
No Matches
JSONProperty Struct Reference

#include <JSONSerializers.h>

Overview

Describes the JSON binding strategy for a single field of a C struct.

Definition at line 83 of file JSONSerializers.h.

Properties

ident data
 Opaque user data passed to the serializer and deserializer.
 
JSONDeserializer deserializer
 The JSONDeserializer, or NULL to omit this field from deserialization.
 
const char * key
 The JSON key name. A NULL key terminates the property list.
 
ptrdiff_t offset
 The byte offset of the field within the struct.
 
JSONSerializer serializer
 The JSONSerializer, or NULL to omit this field from serialization.
 
size_t size
 The byte size of the field within the struct.
 

Property Details

◆ data

ident JSONProperty::data

Opaque user data passed to the serializer and deserializer.

Carries type-specific metadata, e.g. a nested JSONProperties pointer for structs.

Definition at line 114 of file JSONSerializers.h.

◆ deserializer

JSONDeserializer JSONProperty::deserializer

The JSONDeserializer, or NULL to omit this field from deserialization.

Definition at line 108 of file JSONSerializers.h.

◆ key

const char* JSONProperty::key

The JSON key name. A NULL key terminates the property list.

Definition at line 88 of file JSONSerializers.h.

◆ offset

ptrdiff_t JSONProperty::offset

The byte offset of the field within the struct.

Definition at line 93 of file JSONSerializers.h.

◆ serializer

JSONSerializer JSONProperty::serializer

The JSONSerializer, or NULL to omit this field from serialization.

Definition at line 103 of file JSONSerializers.h.

◆ size

size_t JSONProperty::size

The byte size of the field within the struct.

Definition at line 98 of file JSONSerializers.h.


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