From 2af8e041f46cd78aec1c77576f2fb99e046be714 Mon Sep 17 00:00:00 2001 From: Davide Faconti Date: Sun, 28 Jul 2024 16:42:37 +0200 Subject: [PATCH] bug fix --- src/ros_parser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;