[#BloombergLP-baljsn-JsonConverter-convert-06a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/JsonConverter.adoc[JsonConverter]::convert
:relfileprefix: ../../../
:mrdocs:

`convert` overloads

== Synopses

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

Load `value` into `json` using `options`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/baljsn/JsonConverter/convert-067.adoc[convert](
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]* json,
    TYPE const& value,
    xref:BloombergLP/baljsn/ConvertToJsonOptions.adoc[ConvertToJsonOptions] const& options = ConvertToJsonOptions());
----

[.small]#xref:BloombergLP/baljsn/JsonConverter/convert-067.adoc[_» more&period;&period;&period;_]#

Load `json` into `value` using `options`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/baljsn/JsonConverter/convert-02.adoc[convert](
    TYPE* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json,
    xref:BloombergLP/baljsn/ConvertFromJsonOptions.adoc[ConvertFromJsonOptions] const& options = ConvertFromJsonOptions());
----

[.small]#xref:BloombergLP/baljsn/JsonConverter/convert-02.adoc[_» more&period;&period;&period;_]#

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *json*
| JSON object to load
| *value*
| value to convert
| *options*
| conversion options
|===


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