From c5ee5ac3f9f0f9239d8b05be9c2d392f439dfa30 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 27 Oct 2024 15:31:42 +0100 Subject: [PATCH] actually write down id --- src/solanaceae/message3/message_serializer.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/solanaceae/message3/message_serializer.cpp b/src/solanaceae/message3/message_serializer.cpp index d2cf197..f404f15 100644 --- a/src/solanaceae/message3/message_serializer.cpp +++ b/src/solanaceae/message3/message_serializer.cpp @@ -188,9 +188,10 @@ bool MessageSerializerNJ::component_emplace_or_replace_json bool MessageSerializerNJ::component_get_json(MessageSerializerNJ& msc, const Handle h, nlohmann::json& j) { - const auto& comp = h.get(); + const auto& o = h.get().o; + j = msc.serlFileObjByID(o); - return false; + return true; } template<> @@ -201,5 +202,8 @@ bool MessageSerializerNJ::component_emplace_or_replace_json(msc.deserlFileObjByID(j)); + + // TODO: should we return false if the object is unknown?? + return true; }