Return a const iterator to the member with the specified key.

Synopsis

Declared in <bdljsn_json.h>

JsonObject::ConstIterator
find(std::string_view const& key) const;

Description

Return an iterator providing non‐modifiable access to the Member object in this JsonObject with a key equivalent to the specified key, if such an entry exists, and the past‐the‐end iterator (end) otherwise.

Return Value

const iterator to the member with the specified key

Parameters

Name

Description

key

UTF‐8 member name

Created with MrDocs