[#nlohmann-basic_json-00-erase-067]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic&lowbar;json]::erase
:relfileprefix: ../../
:mrdocs:

remove element from a JSON object given a key

== Synopsis

Declared in `&lt;nlohmann&sol;json&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:nlohmann/basic_json-00/size_type.adoc[size&lowbar;type]
erase(object&lowbar;t::key&lowbar;type const& key);
----

== Return Value

a type to represent container sizes


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