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; }