nlohmann::basic_json::find

find an element in a JSON object

Synopsis

Declared in <nlohmann/json.hpp>

const_iterator
find(object_t::key_type const& key) const;

Return Value

const iterator to the element with the given key, or cend() if not found

Parameters

NameDescription
keykey of the element to find