AnCH Framework 0.1
Another C++ Hack Framework
Loading...
Searching...
No Matches
MappingOptions Struct Reference

JSON mapping options. More...

#include <mappingOptions.hpp>

Collaboration diagram for MappingOptions:

Public Attributes

bool serialize_empty_col = true
bool serialize_null = false
uint16_t prettify_nbs = 0
bool deserialize_ignore_unknown_field = false
int64_t deserialize_max_discard_char = 0
std::size_t deserialize_max_field_char = 512
std::size_t max_payload = 0
std::size_t buffer_size = 1024

Detailed Description

JSON mapping options.

Options are used to serialization options and deserialization behavior on unexcepted input stream

Author
Vincent Lachenal
Since
0.1

Member Data Documentation

◆ buffer_size

Buffer size (used for deserialization for now)

◆ deserialize_ignore_unknown_field

Unknown will not raise error if true ; it can be usefull for client side implementation

◆ deserialize_max_discard_char

Maximum discard characters before raising error. Use -1 value for unlimited discard characters. It can be usefull at development stage

◆ deserialize_max_field_char

Maximum field characters before raising error. Use 0 value for unlimited field's value characters

◆ max_payload

Maximum field characters before raising error. Use 0 value for unlimited field's value characters

◆ prettify_nbs

Serialization indentation number of spaces (0 means no prettifying). Default to 0

◆ serialize_empty_col

Serialize empty collection as [] or {} for map . Default to true ; std::optional or pointer can be used

◆ serialize_null

Serialize null or empty string as null . Default to false


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