# HG changeset patch # User Paper # Date 1704732969 18000 # Node ID 79a87a6dd39d58bf1d5c92c25e9ba7725d398c01 # Parent 2f6d27fcdf7dbaced7fe0b2ac92b2ecfeb2c686d core/json: fix from_json oops. diff -r 2f6d27fcdf7d -r 79a87a6dd39d include/core/json.h --- a/include/core/json.h Sun Jan 07 13:37:50 2024 -0500 +++ b/include/core/json.h Mon Jan 08 11:56:09 2024 -0500 @@ -19,7 +19,7 @@ template void from_json(const nlohmann::json& j, std::optional& v) { - return j.is_null() ? std::nullopt : j.get(); + v = j.is_null() ? std::nullopt : j.get(); } } // namespace nlohmann