Workaround for big numbers in JSONs
Compare changes
- Dariusz Rybicki authored
@@ -18,6 +42,30 @@ func convertJsonNumberToString(
@@ -18,6 +42,30 @@ func convertJsonNumberToString(
This MR introduces a workaround for an issue where JSON models containing big numbers (eg 930-digits) can't be parsed by swift's JSONDecoder
/JSONEncoder
.
This affects the GroupMember
model, which holds DHKey
models that has value
property with such a big number. The model's value is stored as String
, and it's automatically decoded/encoded to big number in JSON.