[#BloombergLP-baljsn-EncodeImplUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::EncodeImplUtil
:relfileprefix: ../../
:mrdocs:

This component&hyphen;private utility `struct` provides a suite of functions that encode `bdlat` types in the JSON format&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class FORMATTER&gt;
struct EncodeImplUtil;
----

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/baljsn/EncodeImplUtil/FormattingMode.adoc[`FormattingMode`] 
| Alias for an `int`&hyphen;valued `bdlat&lowbar;FormattingMode` bit&hyphen;field&period;
| xref:BloombergLP/baljsn/EncodeImplUtil/ThisUtil.adoc[`ThisUtil`] 
| `ThisUtil` is a convenience alias for this utility `struct`&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/baljsn/EncodeImplUtil/closeDocument.adoc[`closeDocument`] 
| Print the characters that end a JSON document to `outputStream`&period;
| xref:BloombergLP/baljsn/EncodeImplUtil/encode-0a.adoc[`encode`] 
| `encode` overloads
| xref:BloombergLP/baljsn/EncodeImplUtil/encodeCharArray.adoc[`encodeCharArray`] 
| Encode the JSON representation of the `char` array `value`&period;
| xref:BloombergLP/baljsn/EncodeImplUtil/encodeEmptyArray.adoc[`encodeEmptyArray`] 
| Encode the representation of the empty&hyphen;array JSON value to the specified `formatter`&period;
| xref:BloombergLP/baljsn/EncodeImplUtil/encodeMember-04.adoc[`encodeMember`] 
| `encodeMember` overloads
| xref:BloombergLP/baljsn/EncodeImplUtil/encodeMemberPrefix-03.adoc[`encodeMemberPrefix`] 
| `encodeMemberPrefix` overloads
| xref:BloombergLP/baljsn/EncodeImplUtil/encodeNonEmptyArray.adoc[`encodeNonEmptyArray`] 
| Encode the JSON representation of the non&hyphen;empty array `value`&period;
| xref:BloombergLP/baljsn/EncodeImplUtil/encodeObjectPrefix.adoc[`encodeObjectPrefix`] 
| Encode a JSON object&hyphen;open token when `formattingMode` is tagged&period;
| xref:BloombergLP/baljsn/EncodeImplUtil/encodeObjectSuffix.adoc[`encodeObjectSuffix`] 
| Encode a JSON object&hyphen;close token when `formattingMode` is tagged&period;
| xref:BloombergLP/baljsn/EncodeImplUtil/encodeSimpleValue.adoc[`encodeSimpleValue`] 
| Encode the JSON representation of the simple `value`&period;
| xref:BloombergLP/baljsn/EncodeImplUtil/openDocument.adoc[`openDocument`] 
| Print the characters that start a JSON document to `outputStream`&period;
| xref:BloombergLP/baljsn/EncodeImplUtil/validate-0f.adoc[`validate`] 
| `validate` overloads
| xref:BloombergLP/baljsn/EncodeImplUtil/validateChoice.adoc[`validateChoice`] 
| Determine whether the choice `value` has a defined selection&period;
|===



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