access specified object element

Synopsis

Declared in <nlohmann/json.hpp>

const_reference
operator[](object_t::key_type const& key) const;

Return Value

const reference to the element with key key

Parameters

Name

Description

key

key of the element to access

Created with MrDocs