diff --git a/src/core/src/any.cpp b/src/core/src/any.cpp index d1ecbd0716b..be1018dc8ea 100644 --- a/src/core/src/any.cpp +++ b/src/core/src/any.cpp @@ -217,13 +217,13 @@ void Read>::operator()( } void Read::operator()(std::istream& is, AnyMap& map) const { - std::string key, value; char c; is >> c; OPENVINO_ASSERT(c == '{', "Failed to parse ov::AnyMap. Starting symbols is not '{', it's ", c); while (c != '}') { + std::string key, value; std::getline(is, key, ':'); size_t enclosed_container_level = 0;