[#nlohmann-basic_json-00-contains-01] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic_json]::contains :relfileprefix: ../../ :mrdocs: check the existence of an element in a JSON object given a JSON pointer == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool contains(xref:nlohmann/basic_json-00/json_pointer.adoc[json_pointer] const& ptr) const; ---- == Parameters [cols=2] |=== | Name | Description | *ptr* | JSON Pointer, see xref:nlohmann/json_pointer-0b.adoc[`nlohmann::json_pointer`] |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#