[#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 `<baljsn_jsonconverter.h>` Load into the specified `json` the specified `value` of (template parameter) `TYPE` using the specified `options`. Return 0 on success, and a non‐zero value otherwise. An error is returned if `TYPE` is not a top‐level `Sequence`, `Choice`, or `Array`. The prior value of `json` is reset. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> 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..._]# Load to the specified `value` of (template parameter) `TYPE` the value of the specified `json` using the specified `options`. Return 0 on success and a non‐zero value otherwise. An error is returned if `TYPE` is not a top‐level `Sequence`, `Choice`, or `Array`. The prior value of `value` is reset. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> 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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#