diff --git a/src/ros_parser.cpp b/src/ros_parser.cpp index 5df4a29..40c161b 100644 --- a/src/ros_parser.cpp +++ b/src/ros_parser.cpp @@ -444,8 +444,7 @@ bool Parser::serializeFromJson(const std::string_view json_string, Serializer* serializer) const { rapidjson::Document json_document; - json_document.Parse(json_string.data()); - + json_document.Parse(json_string.data(), json_string.size()); serializer->writeHeader(); std::function serializeImpl;