[#BloombergLP-bdljsn-JsonUtil-write-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonUtil.adoc[JsonUtil]::write :relfileprefix: ../../../ :mrdocs: Write a JSON text representation of `json` to `output`. == Synopsis Declared in `<bdljsn_jsonutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int write( xref:bsl/string.adoc[bsl::string]* output, xref:BloombergLP/bdljsn/Json.adoc[Json] const& json); ---- == Description Return 0 on success and a non‐zero value otherwise. See the documented `write` overload for full contract details. == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *output* | string to receive the JSON text | *json* | document to serialize |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#