[#nlohmann-basic_json-05-operator_subs-0ca] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-05.adoc[basic_json<>]::operator[] :relfileprefix: ../../ :mrdocs: Subscript operator == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:nlohmann/basic_json-05/const_reference.adoc[const_reference] operator[](xref:nlohmann/basic_json-05/json_pointer.adoc[json_pointer] const& ptr) const; ---- == Return Value the type of an element const reference == Parameters [cols="1,4"] |=== |Name|Description | *ptr* | The right operand |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#