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

Load into the specified `json` the specified `value` of (template parameter) `TYPE` using the specified `options`&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; An error is returned if `TYPE` is not a top&hyphen;level `Sequence`, `Choice`, or `Array`&period; The prior value of `json` is reset&period;

== Synopsis

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

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


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