rtyler / py-yajl

py-yajl provides Python bindings for the Yajl JSON encoder/decoder library
http://rtyler.github.com/py-yajl
74 stars 18 forks source link

Don't silently skip over tuples #8

Closed indigoviolet closed 14 years ago

indigoviolet commented 14 years ago

Either convert them to lists of size 2, or throw an error.

In [4]: yajl.dumps([(2, 3)]) Out[4]: '[]'

rtyler commented 14 years ago

Good catch, the json module in Python 2.6 converts to lists, so I think I'll add that

>>> json.dumps([(2,3,)])
'[[2, 3]]'
rtyler commented 14 years ago

Resolved in SHA: e5bfbe1ac69b6cac829d32acc813caff8cbb1a52

indigoviolet commented 14 years ago

Fantastic!

This is an incredibly useful library, and I'm always impressed by how quickly you respond to reports. Thank you.