[#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&period;

== Synopsis

Declared in `&lt;baljsn&lowbar;printutil&period;h&gt;`

[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&colon;&colon;Variant2&lt;Date, DateTz&gt;`&period;
| xref:BloombergLP/baljsn/PrintUtil/DatetimeOrDatetimeTz.adoc[`DatetimeOrDatetimeTz`] 
| `DatetimeOrDatetimeTz` is a convenient alias for `bdlb&colon;&colon;Variant2&lt;Datetime, DatetimeTz&gt;`&period;
| xref:BloombergLP/baljsn/PrintUtil/TimeOrTimeTz.adoc[`TimeOrTimeTz`] 
| `TimeOrTimeTz` is a convenient alias for `bdlb&colon;&colon;Variant2&lt;Time, TimeTz&gt;`&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/baljsn/PrintUtil/floatingPointSpecialAsString.adoc[`floatingPointSpecialAsString`] 
| Return a string for a special floating&hyphen;point classification, or 0&period;
| 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`&period;
| xref:BloombergLP/baljsn/PrintUtil/printFloatingPoint.adoc[`printFloatingPoint`] 
| Encode a floating&hyphen;point `value` as JSON onto `stream`&period;
| xref:BloombergLP/baljsn/PrintUtil/printString.adoc[`printString`] 
| Encode the specified string `value` into JSON format and output the result to the specified `stream`&period;
| xref:BloombergLP/baljsn/PrintUtil/printValue-023.adoc[`printValue`] 
| Encode `value` into JSON and write it to `stream`&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
