nlohmann::basic_json::at

access specified element via JSON Pointer, with bounds checking

Synopsis

Declared in <nlohmann/json.hpp>

const_reference
at(json_pointer const& ptr) const;

Return Value

const reference to the element pointed to by ptr

Parameters

NameDescription
ptrJSON Pointer to the desired element