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

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

#include &lt;/home/build/include/cereal/archives/json.hpp&gt;

## [Public Types](#Public_Types)

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

## [Public Member Functions](#Public_Member_Functions)

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

## [Static Public Member Functions](#Static_Public_Member_Functions)

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

## [Friends](#Friends)

class **JSONOutputArchive**

# [Detailed Description](#Detailed_Description)

A class containing various advanced options for the JSON archive.

# [Constructor & Destructor Documentation](#Constructor_&_Destructor_Documentation)

## [cereal::JSONOutputArchive::Options::Options (int precision = JSONWriter::kDefaultMaxDecimalPlaces, **IndentChar** indentChar = IndentChar::space, unsigned int indentLength = 4) \[inline\], \[explicit\]](#cereal::JSONOutputArchive::Options::Options_%28int_precision_=_)

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)

# [Author](#Author)

Generated automatically by Doxygen for cereal from the source code.

Mon Oct 26 2026 20:39:03 cereal

---

Document: cereal_JSONOutputArchive_Options(3) from cereal 1.3.2-r8 (Chainguard OS)
Source: https://github.com/USCiLab/cereal
