[#BloombergLP-bdljsn-JsonArray-clear]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonArray.adoc[JsonArray]::clear
:relfileprefix: ../../../
:mrdocs:

Remove all elements from this `JsonArray` making its size 0&period; Note that although this `JsonArray` is empty after this method returns, it preserves the same capacity it had before the method was called&period;

== Synopsis

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

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


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