nlohmann::basic_json::operator[]

access specified element via JSON Pointer

Synopsis

Declared in <nlohmann/json.hpp>

reference
operator[](json_pointer const& ptr);

Return Value

reference to the element pointed to by ptr

Parameters

NameDescription
ptrJSON Pointer to the desired element