[#BloombergLP-baljsn-JsonFormatter_Util-valueAsJson-02e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/JsonFormatter_Util.adoc[JsonFormatter_Util]::valueAsJson :relfileprefix: ../../../ :mrdocs: Load the JSON representation of `value` into the specified `json`. == Synopses Declared in `<baljsn_jsonformatter.h>` Load the JSON representation of `value` into the specified `json`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0e.adoc[valueAsJson]( xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]* json, char const* value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options); ---- [.small]#xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0e.adoc[_» more..._]# Load the JSON representation of `value` into the specified `json`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> static int xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-00.adoc[valueAsJson]( xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]* json, TYPE const& value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options); ---- [.small]#xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-00.adoc[_» more..._]# == Return Value 0 on success and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *json* | JSON object to receive the encoded value | *value* | null‐terminated string to encode | *options* | optional encoding options; null uses defaults |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#