| 580 | |
| 581 | template <typename Json,typename StringSource> |
| 582 | typename std::enable_if<std::is_convertible<StringSource,jsoncons::basic_string_view<typename Json::char_type>>::value,Json&>::type |
| 583 | get(Json& root, |
| 584 | const StringSource& location_str, |
| 585 | bool create_if_missing, |
| 586 | std::error_code& ec) |
| 587 | { |
| 588 | auto jsonptr = basic_json_pointer<typename Json::char_type>::parse(location_str, ec); |
| 589 | if (JSONCONS_UNLIKELY(ec)) |
| 590 | { |
| 591 | return root; |
| 592 | } |
| 593 | return get(root, jsonptr, create_if_missing, ec); |
| 594 | } |
| 595 | |
| 596 | template <typename Json> |
| 597 | const Json& get(const Json& root, |
no test coverage detected