I have a Xojo.Core.dictionary. One of the entries has a value of type currency. If I try to convert the dictionary to text with Xojo.Data.GenerateJSON I get a xojo.Core.InvalidArgumentException.
According the docs there should be no exception. Or am I wrong?
JSON doesn’t really have a type that can round trip as a “currency”
You could maybe put one in but it would have to be written as a floating point value (double)
On the way out you would not be able to get it as a currency - json has no notion of “currency”
I’ve run something similar, too. See <https://xojo.com/issue/38580> 38580 - JsonException when converting a json to string that comes from a dictionary with a date. Makes the JsonItem.ToString method not very useful.