[#BloombergLP-bdljsn-JsonObject-erase-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject]::erase
:relfileprefix: ../../../
:mrdocs:

Remove from this `JsonObject` the `Member` object having the specified `key`, if it exists, and return 1&semi; otherwise (there is no object with a key equivalent to `key` in this `JsonObject`) return 0 with no other effect&period; This method invalidates only iterators and references to the removed element and previously saved values of the `end()` iterator, and preserves the relative order of the elements not removed&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
erase(std::string&lowbar;view const& key);
----


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