skip to navigation
skip to content

Not Logged In

nssjson 0.6

Not So Simple JSON encoder/decoder

nssjson is a (not so) simple, fast, complete, correct and extensible JSON encoder and decoder for Python 2.5+ and Python 3.3+. It is pure Python code with no dependencies, but includes an optional C extension for a serious speed boost.

nssjson is a fork of simplejson that fulfills my need of having a good performance JSON encoder/decoder able to handle also Python’s datetime, even if with an admittedly non-standard and faulty heuristic that was not considered within the scope of the original product.

Practically, the difference is that, out of the box, you have:

>>> import datetime
>>> import nssjson
>>> now = datetime.datetime.now()
>>> nssjson.loads(
...     nssjson.dumps(now, iso_datetime=True),
...     iso_datetime=True) == now
True

Changes

0.6 (2015-05-31)

  • Avoid broken JSON output for int/long/float subclasses reimplementing the __str__() and/or __repr__() methods

0.5 (2014-12-21)

  • Fix memory leak when an error occurs encoding dict items
  • Overhaul of load() and dump() signatures
  • Drop Sphinx documentation

0.4 (2014-06-28)

  • Complete the fix against negative index parameter to raw_decode()
  • Fix C encoder initialization
  • Catch invalid item_sort_key argument to C encoder

0.3 (2014-04-16)

0.2 (2014-03-22)

  • Remove dead code noticed by Anatoly Techtonik
  • Use an interned instance of the UTC timezone instead of passing it as an argument to function/constructors

0.1 (2014-03-19)

 
File Type Py Version Uploaded on Size
nssjson-0.6.tar.gz (md5) Source 2015-05-31 58KB
  • Downloads (All Versions):
  • 40 downloads in the last day
  • 271 downloads in the last week
  • 862 downloads in the last month