[#BloombergLP-baljsn-PrintUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::PrintUtil :relfileprefix: ../../ :mrdocs: This `struct` provides functions for printing objects to output streams in JSON format. == Synopsis Declared in `<baljsn_printutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct PrintUtil; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/baljsn/PrintUtil/DateOrDateTz.adoc[`DateOrDateTz`] | `DateOrDateTz` is a convenient alias for `bdlb::Variant2<Date, DateTz>`. | xref:BloombergLP/baljsn/PrintUtil/DatetimeOrDatetimeTz.adoc[`DatetimeOrDatetimeTz`] | `DatetimeOrDatetimeTz` is a convenient alias for `bdlb::Variant2<Datetime, DatetimeTz>`. | xref:BloombergLP/baljsn/PrintUtil/TimeOrTimeTz.adoc[`TimeOrTimeTz`] | `TimeOrTimeTz` is a convenient alias for `bdlb::Variant2<Time, TimeTz>`. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/baljsn/PrintUtil/floatingPointSpecialAsString.adoc[`floatingPointSpecialAsString`] | Return the string representation of special floating point values if the specified `classification` is: * `bdlb::Float::k_POSITIVE_INFINITY` * `bdlb::Float::k_NEGATIVE_INFINITY` * `bdlb::Float::k_QNAN` * `bdlb::Float::k_SNAN` and 0 otherwise. This representation does _not_ include the delimiting double quotes of JSON strings. | xref:BloombergLP/baljsn/PrintUtil/printDateAndTime.adoc[`printDateAndTime`] | Encode the specified `value` into JSON using ISO 8601 format and output the result to the specified `stream` using the specified `options`. | xref:BloombergLP/baljsn/PrintUtil/printFloatingPoint.adoc[`printFloatingPoint`] | Encode the specified floating point `value` into JSON and output the result to the specified `stream`. Use the optionally‐specified `options` to decide how `value` is encoded. | xref:BloombergLP/baljsn/PrintUtil/printString.adoc[`printString`] | Encode the specified string `value` into JSON format and output the result to the specified `stream`. | xref:BloombergLP/baljsn/PrintUtil/printValue-023.adoc[`printValue`] | `printValue` overloads |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#