summaryrefslogtreecommitdiff
path: root/simplejson/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix a crash wish unencodable encoding in the encoder.unencodable-encoder-encodingSerhiy Storchaka2017-05-211-1/+9
| | | | | JSONEncoder.encode() crashed in Python 3 when encoded bytes keys if the encoding was not encodable to utf-8 (contained surrogates).
* Make test_speedups compatible with Python 2.5 and 2.6.Serhiy Storchaka2017-05-211-37/+25
|
* Make test_speedups compatible with Python 2.5.Serhiy Storchaka2017-05-211-0/+2
|
* Fix argument checking errors in _speedups.c.Serhiy Storchaka2017-05-121-1/+54
| | | | | | | Always check PyObject_IsTrue() for error. Also fix integer overflow in the int_as_string_bitcount argument. Fixes #167.
* Bump version, update changelog, fix issues identified in code review of #143Bob Ippolito2016-10-282-0/+18
|
* Merge branch 'raw_json' of https://github.com/lamflam/simplejson into ↵Bob Ippolito2016-10-281-0/+30
|\ | | | | | | lamflam-raw_json
| * Add support for preprocessed JSON strings (with optimizations) in encoderKevin LaFlamme2016-09-011-0/+30
| | | | | | | | In some situations, you may have a large python dictionary you need to JSONify but one of the values inside the dict is already a JSON string. This is common when pulling an object from a database, for example, where one of the fields is a JSON blob/string. Previously you would have to deserialize and then reserialize that string just to serialize the high level object, but obviously this is unnecessarily slow. This changes adds a method/type that can be used to wrap a str and tell the serializer to just pass it through instead.
* | Fixes #144. Workaround for bad behavior in string subclasses.Bob Ippolito2016-10-212-0/+17
|/
* Fix issue with iterable_as_array and indent option, closes #128v3.8.1Bob Ippolito2015-10-272-17/+18
|
* Merge branch 'master' into iterable_as_array-gh1Nick Babcock2015-07-1027-206/+1060
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: CHANGES.txt conf.py index.rst setup.py simplejson/__init__.py simplejson/_speedups.c simplejson/encoder.py simplejson/tests/test_tuple.py
| * no longer trust custom repr for int/long/float subclasses #118v3.7.0Bob Ippolito2015-05-182-0/+38
| |
| * failing test for #106Bob Ippolito2014-09-291-0/+9
| |
| * generalize BOM stripping to any use of raw_decodeBob Ippolito2014-07-212-11/+7
| |
| * strip utf-8 bom.Ryo Takahashi2014-07-212-0/+12
| |
| * Fix lower bound checking in scan_once / raw_decode API #98v3.5.3Bob Ippolito2014-06-241-0/+11
| |
| * consistently reject int_as_string_bitcount <= 0 #96v3.5.1Bob Ippolito2014-05-222-0/+7
| |
| * Allocate int_as_string bounds once per encoderColin Deasy2014-05-201-1/+2
| |
| * Adding `int_as_string_bitcount` optionColin Deasy2014-05-143-42/+136
| |
| * fix tests to run on Python 3.4Bob Ippolito2014-04-301-37/+45
| |
| * improve Python 3.3 compat #87, bump to 3.3.3v3.3.3Bob Ippolito2014-02-141-4/+4
| |
| * fix pickle breakage with JSONDecodeErrorIdan Kamara2013-10-051-1/+17
| | | | | | | | | | pickle doesn't behave correctly with custom Exceptions, we workaround the issue by explicitly defining how to pickle JSONDecodeError.
| * pass-through in decoder for lone surrogates #62v3.3.0surrogate-62baserock/morphBob Ippolito2013-05-072-19/+55
| |
| * ignore_nan #63ecma-262-63Bob Ippolito2013-05-011-1/+9
| |
| * update CHANGES and testsfor_json-69Bob Ippolito2013-05-012-75/+47
| |
| * Implement for_json kwarg; pure Python version; add tests; update documentation.shakefu2013-04-171-0/+126
| |
| * fixes #65Bob Ippolito2013-03-191-1/+16
| |
| * fix python 2.5 regression in tool and test_toolpy-backportsBob Ippolito2013-02-211-3/+5
| |
| * update JSON conformance test suite (#58)Bob Ippolito2013-02-212-15/+28
| |
| * simplejson.tool tests and bugfix for Python 3.x (#60)Bob Ippolito2013-02-212-0/+81
| |
| * improve truncated input error messages, use JSONDecodeError instead of ↵Bob Ippolito2013-02-211-1/+40
| | | | | | | | StopIteration (#61)
| * fix off-by-one error in the colno of JSONDecodeError when lineno == 0 (#57)v3.0.9Bob Ippolito2013-02-212-2/+2
| |
| * v3.0.6, fixes ensure_ascii=False regression (#50)v3.0.6Bob Ippolito2013-01-111-1/+12
| |
| * bump to v3.0.5, fix deprecations in testsv3.0.5Bob Ippolito2013-01-0318-128/+131
| |
| * _Py_Accu style encoder optimization, bump to 3.0.1v3.0.1Bob Ippolito2013-01-011-0/+5
| |
| * more coverageBob Ippolito2012-12-301-0/+25
| |
| * better test coverage for invalid surrogatesBob Ippolito2012-12-301-0/+35
| |
| * more coverage for skipkeysBob Ippolito2012-12-301-4/+23
| |
| * more coverage, decimal key coercionBob Ippolito2012-12-293-9/+45
| |
| * try and use native Py3.3 unicode everywhereBob Ippolito2012-12-291-1/+22
| |
| * start working on improving coverage, remove unused bytes code paths from py3Bob Ippolito2012-12-282-4/+22
| |
| * fix python 2.5 test regressionBob Ippolito2012-12-281-1/+2
| |
| * First pass at Python 3.3 compatibilityBob Ippolito2012-12-2813-47/+64
| | | | | | | | First pass at Python 3.3 compatibility, bump to 3.0.0
| * export JSONEncoderForHTML (#41), bump to v2.6.2v2.6.2Bob Ippolito2012-09-211-5/+3
| |
| * bump version to 2.6.1 and add test/docs for #38 raw_decode fixv2.6.1Bob Ippolito2012-07-271-0/+4
| |
| * Support for use_decimal=True in sub-interpretersv2.5.1Bob Ippolito2012-05-101-3/+14
| |
| * bump version to 2.5.0, add docs for item_sort_keyBob Ippolito2012-03-291-6/+5
| |
| * Added item_sort_keyScott Maxwell2012-03-201-0/+21
| | | | | | | | Allows sorting by aspects of the key/value pair.
| * fix edge cases and pre-2.7 compatibilityBob Ippolito2012-03-061-12/+44
| |
| * Integrated unit test into test suiteScott Maxwell2012-03-022-18/+1
| | | | | | | | Had to add it to __init__.py and remove my manual no-speedups tests.
| * Finalized bigint_as_string featureScott Maxwell2012-03-021-0/+41
| | | | | | | | | | | | | | Renamed javascript_safe_ints to bigint_as_string to match the similar parameter in PHP. Added unit tests. Fixed boundary of the bigint range. Added bigint_as_string to default encoder test.