nlohmann::basic_json::at

access specified object element with bounds checking

Synopsis

Declared in <nlohmann/json.hpp>

const_reference
at(object_t::key_type const& key) const;

Return Value

const reference to the element with key key

Parameters

NameDescription
keykey of the element to access