! @brief find an element in a JSON object Finds an element in a JSON object with key equivalent to @a key. If the element is not found or the JSON value is not an object, end() is returned. @param[in] key key value of the element to search for @return Iterator to an element with key equivalent to @a key. If no such element is found, past-the-end (see end()) iterator
| 4213 | @since version 1.0.0 |
| 4214 | */ |
| 4215 | iterator find(typename object_t::key_type key) |
| 4216 | { |
| 4217 | auto result = end(); |
| 4218 | |
| 4219 | if (is_object()) |
| 4220 | { |
| 4221 | result.m_it.object_iterator = m_value.object->find(key); |
| 4222 | } |
| 4223 | |
| 4224 | return result; |
| 4225 | } |
| 4226 | |
| 4227 | /*! |
| 4228 | @brief find an element in a JSON object |
no test coverage detected