We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e030c7e commit 56c6ffcCopy full SHA for 56c6ffc
include/behaviortree_cpp/json_export.h
@@ -144,7 +144,7 @@ inline void RegisterJsonDefinition()
144
\
145
inline void to_json(nlohmann::json& js, const Type& p) \
146
{ \
147
- auto op = [&js](const char* name, auto* val) { to_json(js[name], *val); }; \
+ auto op = [&js](const char* name, auto* val) { js[name] = *val; }; \
148
_JsonTypeDefinition(const_cast<Type&>(p), op); \
149
js["__type"] = #Type; \
150
} \
0 commit comments