[#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. Note that although this `JsonArray` is empty after this method returns, it preserves the same capacity it had before the method was called. == Synopsis Declared in `<bdljsn_json.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void clear(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#