diff --git a/src/db/sets.cpp b/src/db/sets.cpp index 8ff2bf5..12a6694 100644 --- a/src/db/sets.cpp +++ b/src/db/sets.cpp @@ -100,9 +100,9 @@ extern "C" int modify_set(int id, const char* name, const char* problems, const char* data) { auto json = nlohmann::json{ - {"name", name }, - {"problems", nlohmann::json(problems) }, - {"data", nlohmann::json::parse(data)} + {"name", name }, + {"problems", nlohmann::json::parse(problems)}, + {"data", nlohmann::json::parse(data) } }; auto status = sets_db->Put(leveldb::WriteOptions{}, std::to_string(id), json.dump()); if (!status.ok()) {