simplejson/simplejson — Issue #24: Fractions wrongly encoded
Author: ukch
Created: 2011-11-28 14:58:22+00:00
State: open

Using HEAD version of simplejson:

In [3]: simplejson.dumps([0.3])
Out[3]: '[0.29999999999999999]'

I would expect this to output '[0.3]'. A workaround is to manually turn the fractions into strings before encoding.