Closed kazimuth closed 1 month ago
This is apparently the native behavior of serde_json. https://github.com/clockworklabs/SpacetimeDB/pull/1616 adds the serde_json arbitrary_precision
feature to enable serde_json to correctly deserialize values like this to serde_json::Value
.
Unlike U256, which is serialized as a hex string. This may cause issues with some JSON implementations that deserialize numbers as floating point.