nlohmann::basic_json::operator[]

access specified element via JSON Pointer

Synopsis

Declared in <nlohmann/json.hpp>

const_reference
operator[](json_pointer const& ptr) const;

Return Value

const reference to the element pointed to by ptr

Parameters

NameDescription
ptrJSON Pointer to the desired element