[#nlohmann-basic_json-0c-operator_subs-0e6]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0c.adoc[basic&lowbar;json]::operator&lsqb;&rsqb;
:relfileprefix: ../../
:mrdocs:

access specified element via JSON Pointer

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:nlohmann/basic_json-0c/const_reference.adoc[const&lowbar;reference]
operator&lsqb;&rsqb;(xref:nlohmann/basic_json-0c/json_pointer.adoc[json&lowbar;pointer] const& ptr) const;
----

== Return Value

const reference to the element pointed to by _ptr_

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ptr*
| JSON Pointer to the desired element
|===


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