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

Remove from this `JsonArray` the element at the specified `index`, and return an iterator providing modifiable access to the element immediately following the removed element, or the position returned by the method `end` if the removed element was the last in the sequence&period; The behavior is undefined unless `index` is in the range `&lsqb;0 &period;&period; size())&rsqb;`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/JsonArray/Iterator-0d.adoc[JsonArray::Iterator]
erase(std::size&lowbar;t index);
----


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