[#BloombergLP-bdljsn-WriteStyle] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::WriteStyle :relfileprefix: ../../ :mrdocs: Namespace for formatting styles used when writing a JSON document. == Synopsis Declared in `<bdljsn_writestyle.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct WriteStyle; ---- == Description This `struct` provides a namespace for enumerating the formatting styles that can be used for writing a JSON document. See `Enum` in the TYPES sub‐section for details. This class: * supports a complete set of _enumeration_ operations * except for `bdex` serialization * is `const` _thread‐safe_ For terminology see `bsldoc_glossary`. == Enums [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdljsn/WriteStyle/Enum.adoc[`Enum`] | Formatting styles for writing JSON text. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdljsn/WriteStyle/print.adoc[`print`] | Write the string representation of the specified enumeration `value` to the specified output `stream`. | xref:BloombergLP/bdljsn/WriteStyle/toAscii.adoc[`toAscii`] | Return the string representation of the specified enumeration `value`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#