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

The JSON writer settings. More...

#include <json.h>

Data Fields

bool pretty
 Set true to enable pretty output.
 
bool sort_members
 Set false to output the members in the order in which they were added.
 
uint8_t frac_max_digits
 The maximum number of fractional digits in a number value.
 
bool indent_space
 Set true to use spaces instead of tab characters.
 
uint8_t indent
 If indent_space is true, this is the number of spaces per tab.
 
bool escape_slash
 Set true to enable escaping of the slash character (solidus).
 

Detailed Description

The JSON writer settings.

Field Documentation

◆ frac_max_digits

uint8_t cx_json_writer_s::frac_max_digits

The maximum number of fractional digits in a number value.

The default value is 6 and values larger than 15 are reduced to 15. Note, that the actual number of digits may be lower, depending on the concrete number.

◆ indent

uint8_t cx_json_writer_s::indent

If indent_space is true, this is the number of spaces per tab.

Indentation is only used in pretty output.

◆ indent_space

bool cx_json_writer_s::indent_space

Set true to use spaces instead of tab characters.

Indentation is only used in pretty output.


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