[#BloombergLP-baljsn-JsonFormatter-putNullValue]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/JsonFormatter.adoc[JsonFormatter]::putNullValue
:relfileprefix: ../../../
:mrdocs:

Set the current array element or object value to null&period;

== Synopsis

Declared in `&lt;baljsn&lowbar;jsonformatter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
putNullValue();
----

== Description

Set the value of the current array element or object value &hyphen;&hyphen; depending on the context &hyphen;&hyphen; to `bdljsn&colon;&colon;JsonNull`&period; Return 0 on success and a non&hyphen;zero value otherwise&period; An error is returned when `putNullValue` is called in an unexpected context&period;

== Return Value

0 on success and a non&hyphen;zero value otherwise


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