Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.53 KB

File metadata and controls

41 lines (30 loc) · 1.53 KB

jsoncons::toon::toon_options

#include <jsoncons_ext/toon/toon_options.hpp>

class toon_options;

toon_options

Specifies options for reading and writing toon-format.

Option Reading Writing Default Note
indent Number of spaces to indent each level Number of spaces to indent each level. 2
max_nesting_depth Maximum nesting depth allowed when reading toon-format Maximum nesting depth allowed when writing toon-format 1024
strict See strict mode errors and diagnostics   true
expand_policy Expand policy   off Not supported
delimiter   Delimiter character for arrays comma
length_marker   Optional marker for prefixing array lengths None
key_folding   Key folding off Not supported
flatten_depth   Flatten depth 1024 Not supported

Constructor

toon_options()

Constructs a toon_options with default values.

Setters

toon_options& indent(int value) 
toon_options& max_nesting_depth(int depth) 
toon_options& strict(bool value) 
toon_options& delimiter(toon_delimiter_kind value) 
toon_options& length_marker(jsoncons::optional<char> value) 
toon_options& expand_paths(key_folding_kind value)
toon_options& key_folding(key_folding_kind value)
toon_options& flatten_depth(std::size_t value)