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

check the existence of an element in a JSON object given a JSON pointer

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
contains(xref:nlohmann/basic_json-00/json_pointer.adoc[json&lowbar;pointer] const& ptr) const;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ptr*
| JSON Pointer, see xref:nlohmann/json_pointer-0b.adoc[`nlohmann&colon;&colon;json&lowbar;pointer`]
|===


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