BloombergLP::baljsn::EncodeImplUtil

This component-private utility struct provides a suite of functions that encode bdlat types in the JSON format.

Synopsis

Declared in <baljsn_encodeimplutil.h>

template<class FORMATTER>
struct EncodeImplUtil;

Type Aliases

NameDescription
FormattingMode Alias for an int-valued bdlat_FormattingMode bit-field.
ThisUtil ThisUtil is a convenience alias for this utility struct.

Static Member Functions

NameDescription
closeDocument Print the characters that end a JSON document to outputStream.
encode encode overloads
encodeCharArray Encode the JSON representation of the char array value.
encodeEmptyArray Encode the representation of the empty-array JSON value to the specified formatter.
encodeMember encodeMember overloads
encodeMemberPrefix encodeMemberPrefix overloads
encodeNonEmptyArray Encode the JSON representation of the non-empty array value.
encodeObjectPrefix Encode a JSON object-open token when formattingMode is tagged.
encodeObjectSuffix Encode a JSON object-close token when formattingMode is tagged.
encodeSimpleValue Encode the JSON representation of the simple value.
openDocument Print the characters that start a JSON document to outputStream.
validate validate overloads
validateChoice Determine whether the choice value has a defined selection.