SiftScience / sift-python

Sift API (Python client)
MIT License
20 stars 23 forks source link

TypeError: Decimal('12150.0') is not JSON serializable #38

Closed steinbachr closed 3 years ago

steinbachr commented 8 years ago

can't pass decimal values when tracking events. Would be nice if the sift client used a custom encoder, as described in this SO post: http://stackoverflow.com/questions/1960516/python-json-serialize-a-decimal-object

neoecos commented 8 years ago

+1

quanpod commented 7 years ago

@steinbachr Apologies for the long delay here - we're taking a look here. If you've got a custom implementation that forks from ours, let us know if you want to contribute that modification.

ehrmann commented 5 years ago

We could use https://stackoverflow.com/a/1960649/1076480