[#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 `char` array `value`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
encodeCharArray(
    FORMATTER* formatter,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;char&gt;] const& value,
    xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const& options);
----

== Description

Encode the JSON representation of the specified `value` to the specified JSON `formatter`&period; Use the specified `options` to configure aspects of the JSON representation of the `value`&period; Return 0 on success, and a non&hyphen;zero value otherwise&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *formatter*
| JSON formatter that receives the encoded tokens
| *value*
| `char` array to encode as Base64
| *options*
| encoding options
|===


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