This struct provides functions for printing objects to output streams in JSON format.
Declared in <baljsn_printutil.h>
struct PrintUtil;
| Name | Description |
|---|---|
DateOrDateTz | DateOrDateTz is a convenient alias for bdlb::Variant2<Date, DateTz>. |
DatetimeOrDatetimeTz | DatetimeOrDatetimeTz is a convenient alias for bdlb::Variant2<Datetime, DatetimeTz>. |
TimeOrTimeTz | TimeOrTimeTz is a convenient alias for bdlb::Variant2<Time, TimeTz>. |
| Name | Description |
|---|---|
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. |
printDateAndTime | Encode the specified value into JSON using ISO 8601 format and output the result to the specified stream using the specified options. |
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. |
printString | Encode the specified string value into JSON format and output the result to the specified stream. |
printValue | printValue overloads |