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

Function call operators

== Synopses

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

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;


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

[.small]#xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-0e5.adoc[_» more&period;&period;&period;_]#

The behavior of this function is undefined&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-0a.adoc[operator()](
    TYPE const&,
    xref:BloombergLP/bslmf/Nil.adoc[bslmf::Nil]);
----

[.small]#xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-0a.adoc[_» more&period;&period;&period;_]#

Same as the primary `operator()` overload for the specified `category`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-020.adoc[operator()](
    TYPE const& value,
    xref:BloombergLP/bdlat_TypeCategory/Array.adoc[bdlat&lowbar;TypeCategory::Array] category);
----

[.small]#xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-020.adoc[_» more&period;&period;&period;_]#

Same as the primary `operator()` overload for the specified `category`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-026.adoc[operator()](
    TYPE const& value,
    xref:BloombergLP/bdlat_TypeCategory/Choice.adoc[bdlat&lowbar;TypeCategory::Choice] category);
----

[.small]#xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-026.adoc[_» more&period;&period;&period;_]#

Same as the primary `operator()` overload for the specified `category`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-03.adoc[operator()](
    TYPE const& value,
    xref:BloombergLP/bdlat_TypeCategory/CustomizedType.adoc[bdlat&lowbar;TypeCategory::CustomizedType] category);
----

[.small]#xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-03.adoc[_» more&period;&period;&period;_]#

Same as the primary `operator()` overload for the specified `category`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-01.adoc[operator()](
    TYPE const& value,
    xref:BloombergLP/bdlat_TypeCategory/DynamicType.adoc[bdlat&lowbar;TypeCategory::DynamicType] category);
----

[.small]#xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-01.adoc[_» more&period;&period;&period;_]#

Same as the primary `operator()` overload for the specified `category`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-0c.adoc[operator()](
    TYPE const& value,
    xref:BloombergLP/bdlat_TypeCategory/Enumeration.adoc[bdlat&lowbar;TypeCategory::Enumeration] category);
----

[.small]#xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-0c.adoc[_» more&period;&period;&period;_]#

Same as the primary `operator()` overload for the specified `category`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-0ee.adoc[operator()](
    TYPE const& value,
    xref:BloombergLP/bdlat_TypeCategory/NullableValue.adoc[bdlat&lowbar;TypeCategory::NullableValue] category);
----

[.small]#xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-0ee.adoc[_» more&period;&period;&period;_]#

Same as the primary `operator()` overload for the specified `category`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-05.adoc[operator()](
    TYPE const& value,
    xref:BloombergLP/bdlat_TypeCategory/Sequence.adoc[bdlat&lowbar;TypeCategory::Sequence] category);
----

[.small]#xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-05.adoc[_» more&period;&period;&period;_]#

Same as the primary `operator()` overload for the specified `category`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-08.adoc[operator()](
    TYPE const& value,
    xref:BloombergLP/bdlat_TypeCategory/Simple.adoc[bdlat&lowbar;TypeCategory::Simple] category);
----

[.small]#xref:BloombergLP/baljsn/EncodeImplUtil_ValueDispatcher/operator_call-08.adoc[_» more&period;&period;&period;_]#


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