diff --git a/include/characteristic/characteristic.hpp b/include/characteristic/characteristic.hpp index d3fadc2..803f432 100644 --- a/include/characteristic/characteristic.hpp +++ b/include/characteristic/characteristic.hpp @@ -39,10 +39,10 @@ namespace character::characteristic { }; void to_json(json &j, const Characteristic &charac) { - j.emplace("base", charac.get_base()); - j.emplace("carac", charac.get_carac()); - j.emplace("materiel", charac.get_materiel()); - j.emplace("additional", charac.get_additional()); + j["base"] = charac.get_base(); + j["carac"] = charac.get_carac(); + j["materiel"] = charac.get_materiel(); + j["additional"] = charac.get_additional(); } }