You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
json result in (desired result): {'jsonrpc': '2.0', 'result': {'test1': Decimal('935733.817019799357333475932629142801644788893573383506621454627967'),'test2':Decimal('3383506.81')}
This may be similar to #124 and #69 but neither relate specifically to decimal.
The text was updated successfully, but these errors were encountered:
What did you do?
I receive financial market data in JSON format and want to parse it to Decimal, ensuring that there is no loss of fidelity using python's float type.
What did you expect to happen?
The standard json library supports the parse_float parameter in json.loads(). ujson does not appear to have a similar ability.
usjon results in:
{'jsonrpc': '2.0', 'result': {'test1': 935733.8170197994, 'test2': 3383506.81}}
json result in (desired result):
{'jsonrpc': '2.0', 'result': {'test1': Decimal('935733.817019799357333475932629142801644788893573383506621454627967'),'test2':Decimal('3383506.81')}
This may be similar to #124 and #69 but neither relate specifically to decimal.
The text was updated successfully, but these errors were encountered: