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