[#BloombergLP-baljsn-EncodeImplUtil_ValueDispatcher-operator_call-0e5]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher.adoc[EncodeImplUtil&lowbar;ValueDispatcher]::operator()
:relfileprefix: ../../../
:mrdocs:

Encode the JSON representation of `value` to this object&apos;s formatter&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
operator()(
    xref:bsl/vector-00d.adoc[bsl::vector&lt;char&gt;] const& value,
    xref:BloombergLP/bdlat_TypeCategory/Array.adoc[bdlat&lowbar;TypeCategory::Array] category);
----

== Description

Encode the JSON representation of the specified `value` to the JSON `formatter` attribute of this object, according to the `formattingMode` attribute of this object&period; If the representation contains no text and the `isFirstSubObject` attribute of this object is `true`, set the `isNextObjectFirst` attribute of this object to `true`, and the value `false` otherwise&period; If `isFirstSubObject` is `true`, then the representation of the value contains no leading sequence delimiter, and does contain such a delimiter otherwise&period; The `options` attribute of this object configures aspects of the JSON representation of the `value`&period; If this operation is not successful, load an unspecified, human&hyphen;readable description of the error condition to the `logStream` attribute of this object&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; The behavior is undefined unless the specified `TYPE` satisfies both the static and dynamic requirements of the specified `category` `bdlat` type&hyphen;category concept&period; See `baljsn&lowbar;encoderoptions` for a description of the effects, if any, of each option in the `options` on the JSON representation of the `value`&period; See the package&hyphen;level documentation of `bdlat` for an introduction to the requirements of `bdlat` type&hyphen;category concepts&period;

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| value to encode
| *category*
| `bdlat` Array type&hyphen;category tag
|===


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