The dump() method in jsonclass was emitting a list with "decimal.Decimal" - the correct module and class name, but no value to be used in deserialization was included. The net effect was all Decimal's being transported came through with the default value of 0.
This pull requests fixes this by including the string representation of the Decimal to be used by load() on deserialization.
The dump() method in jsonclass was emitting a list with "decimal.Decimal" - the correct module and class name, but no value to be used in deserialization was included. The net effect was all Decimal's being transported came through with the default value of 0.
This pull requests fixes this by including the string representation of the Decimal to be used by load() on deserialization.
A test case is included.