Skip to content
Snippets Groups Projects
Select Git revision
  • branch/default-vms
  • master
  • felixonmars-patch-1-1
  • felixonmars-patch-1
  • fix-173
  • wild/4890788900eb713c68beb1452b00dac2f73c70a7
  • wheels
  • branch/default default protected
  • python2.2
  • docs-102
  • surrogate-62
  • ecma-262-63
  • for_json-69
  • py-backports
  • py3
  • item_sort_key
  • bigint_as_string-gh31
  • dict-subclass-gh26
  • namedtuple_duck-gh22
  • iterable_as_array-gh1
20 results

simplejson

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Keshav Kini authored
    This was causing failures in software which passes objects which are
    neither of type str, int, or long, but rather a custom numerical class,
    as the value of the indent parameter. Since this custom numerical class
    understands multiplication by strings, it should be accepted by
    simplejson's encoder and treated as a numerical argument.
    d1535b92
    History
    Name Last commit Last update
    scripts
    simplejson
    .gitignore
    CHANGES.txt
    LICENSE.txt
    MANIFEST.in
    README.rst
    conf.py
    index.rst
    setup.py

    simplejson is a simple, fast, complete, correct and extensible JSON <http://json.org> encoder and decoder for Python 2.5+. It is pure Python code with no dependencies, but includes an optional C extension for a serious speed boost.

    The latest documentation for simplejson can be read online here: http://simplejson.readthedocs.org/

    simplejson is the externally maintained development version of the json library included with Python 2.6 and Python 3.0, but maintains backwards compatibility with Python 2.5.

    The encoder may be subclassed to provide serialization in any kind of situation, without any special support by the objects to be serialized (somewhat like pickle).

    The decoder can handle incoming JSON strings of any specified encoding (UTF-8 by default).