OS Manuals

cereal_JSONOutputArchive_Options(3)

cereal::JSONOutputArchive::Options - A class containing various advanced options for the JSON archive.

cereal::JSONOutputArchive::Options(3) Library Functions Manual cereal::JSONOutputArchive::Options(3)

cereal::JSONOutputArchive::Options - A class containing various advanced options for the JSON archive.

#include </home/build/include/cereal/archives/json.hpp>


enum class IndentChar : char { space = ' ', tab = '', newline = '0, carriage_return = '' }
The character to use for indenting.


Options (int precision=JSONWriter::kDefaultMaxDecimalPlaces, IndentChar indentChar=IndentChar::space, unsigned int indentLength=4)
Specify specific options for the JSONOutputArchive.


static Options Default ()
Default options. static Options NoIndent ()
Default options with no indentation.


class JSONOutputArchive

A class containing various advanced options for the JSON archive.

Specify specific options for the JSONOutputArchive.

Parameters

precision The precision used for floating point numbers
indentChar The type of character to indent with
indentLength The number of indentChar to use for indentation (0 corresponds to no indentation)

Generated automatically by Doxygen for cereal from the source code.

Sat Oct 10 2026 08:08:15 cereal

cereal 1.3.2-r6 · enterprise-packages · ingested 2026-10-10