Skip to content

Commit 56c6ffc

Browse files
committed
fix ambiguous to_json
1 parent e030c7e commit 56c6ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/behaviortree_cpp/json_export.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ inline void RegisterJsonDefinition()
144144
\
145145
inline void to_json(nlohmann::json& js, const Type& p) \
146146
{ \
147-
auto op = [&js](const char* name, auto* val) { to_json(js[name], *val); }; \
147+
auto op = [&js](const char* name, auto* val) { js[name] = *val; }; \
148148
_JsonTypeDefinition(const_cast<Type&>(p), op); \
149149
js["__type"] = #Type; \
150150
} \

0 commit comments

Comments
 (0)