```cpp struct Test { int x; operator int() { return x; } }; Test t = { 0 }; nlohmann::json j; j["test"] = t; ``` This doesn't compile, I was hoping it would use the conversion operator.