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

Problem with encoding and decoding None #34

Open umax opened 12 years ago

umax commented 12 years ago

There is a problem with decoding encoded by yajl value:

In [1]: import yajl In [2]: json_data = yajl.dumps({None:123}) In [3]: json_data Out[3]: '{null:123}'

In [4]: data = yajl.loads(json_data)

ValueError Traceback (most recent call last) /home/umax/projects/json_text/ in () ----> 1 data = yajl.loads(json_data)

ValueError: parse error