Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Jul 28, 2024
1 parent 56ea4fa commit 2af8e04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ros_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<void(const ROSMessage*, rapidjson::Value*)> serializeImpl;
Expand Down

0 comments on commit 2af8e04

Please sign in to comment.