| 678 | |
| 679 | template <typename T> |
| 680 | T value(std::string_view key, T default_value) const |
| 681 | { |
| 682 | ASSERT(is_object()); |
| 683 | if (auto it = object_val().find(key); it != object_val().end()) { |
| 684 | return json_wrapper<true>(it->value()).get<T>(); |
| 685 | } |
| 686 | return default_value; |
| 687 | } |
| 688 | |
| 689 | auto items() const |
| 690 | { |
no test coverage detected