Output of jsonlib.write truncated/missing data

Bug #519270 reported by Ben Jeffery
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jsonlib
Fix Released
Critical
John Millikin

Bug Description

In jsonlib1.6 (on x64) when the data to be serialized goes above a certain length the output is truncated or missing chunks:

For example:

import jsonlib
data = ["a"*2045]
print jsonlib.write(data)

gives a string with no terminating quote.

data = [{"a":3}]*270
print len(jsonlib.read(jsonlib.write(data)))

Gives output of 142 not 270

Changed in jsonlib:
assignee: nobody → John Millikin (jmillikin)
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
John Millikin (jmillikin) wrote :

Thanks for the bug report; I've released version 1.6.1, which fixes this error. It can be downloaded from Launchpad, or on PyPI:

Python 2: http://pypi.python.org/pypi/jsonlib/
Python 3: http://pypi.python.org/pypi/jsonlib-python3/

Changed in jsonlib:
status: Confirmed → Fix Released
Revision history for this message
Ben Jeffery (ben-jeffery) wrote :

 Just updated and the fix works for me.
Thanks for the speedy bugfix and your work on this module.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.