[#BloombergLP-bdljsn-JsonUtil-write-0b]
= 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`&period; Return 0 on success and a non&hyphen;zero value otherwise&period; See the documented `write` overload for full contract details&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;jsonutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
write(
    std::ostream& output,
    xref:BloombergLP/bdljsn/Json.adoc[Json] const& json,
    xref:BloombergLP/bdljsn/WriteOptions.adoc[WriteOptions] const& options);
----


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