[#BloombergLP-baljsn-EncodeImplUtil-encodeCharArray] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncodeImplUtil.adoc[EncodeImplUtil]::encodeCharArray :relfileprefix: ../../../ :mrdocs: Encode the JSON representation of the specified `value` to the specified JSON `formatter`. Use the specified `options` to configure aspects of the JSON representation of the `value`. Return 0 on success, and a non‐zero value otherwise. == Synopsis Declared in `<baljsn_encodeimplutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int encodeCharArray( FORMATTER* formatter, xref:bsl/vector-00d.adoc[bsl::vector<char>] const& value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const& options); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#