1
0
mirror of https://github.com/ultrajson/ultrajson.git synced 2024-11-24 01:04:19 +01:00
Commit Graph

121 Commits

Author SHA1 Message Date
Mathieu Leplatre
d169b7ccbc Add option to disable forward slash escape
Ref issue #144
2015-03-31 23:41:51 +02:00
Joakim Hamrén
c9744834ab Merge pull request #142 from kevinbirch/support_unsigned_long_numerics
Support values between [0, 2^64 - 1]
2014-11-14 00:33:20 +01:00
kevin birch
cbd68782c8 add encoding support for unsigned long long 2014-11-11 18:25:27 -05:00
Joakim Hamren
7d28dc09ec Fixed segfault on invalid unicode char on python 3 2014-10-28 23:32:14 +01:00
kevin birch
6430079c3d support promotion of numeric values to unsigned long 2014-09-02 17:00:16 -04:00
Jonas Tarnstrom
0d76bd0849 Revert "Minor performance optimization"
This reverts commit 510a8fc6d7fd2af9fd39970ff3de4d9aac382706.
2014-04-16 08:42:48 +02:00
Jonas Tarnstrom
510a8fc6d7 Minor performance optimization 2014-04-14 15:52:22 +02:00
Jonas Tarnstrom
4057771d9c Added private argument support for encoder path 2014-04-14 14:43:15 +02:00
Jonas Tarnstrom
9f3449b826 Updated copyright clause 2014-04-14 13:45:50 +02:00
Jonas Tarnstrom
06173a7354 Improved generic iterator support, revmoed iterBegin from encoder API, added test for blist 2014-04-14 13:39:03 +02:00
Jonas Tarnstrom
a62032db13 Bumped version 2014-04-14 13:39:01 +02:00
Mark Vismonte
2dca0063b5 [ujson] Fixing seg faults in unit tests
- The following unit tests were causing segfaults:
```
test_doubleLongDecimalIssue
test_invalidDoublePrecision
test_doublePrecisionTest
test_encodeDecimal
test_doubleLongIssue
test_encodeDecodeLongDecimal
```
- I changed a constant that couldn't be `const` because it can be overwritten by
  a passed in parameter
2014-02-02 00:58:57 +00:00
Jonas Tärnström
e339f5b9d7 Merge pull request #107 from romuloceccon/silence_unused_PyIntToINTXX_warning
Silence warning about unused PyIntToINTXX
2013-10-04 07:46:27 -07:00
Romulo A. Ceccon
343d36719b Silence warning about unused PyIntToINTXX
Make the declaration of PyIntToINT32/PyIntToINT64
conditional; otherwise the compiler always warns
about one of them being unused.
2013-09-26 17:15:59 -03:00
Romulo A. Ceccon
28b3bb371f Make idoublePrecision a true constant
Some older compilers might complain about
idoublePrecision not being a constant when
referenced inside the array declaration.
2013-09-26 17:06:08 -03:00
Romulo A. Ceccon
1f4b786efb Fixed support for distributions without decimal.py
ujson crashed Python if decimal.py wasn't
available. This fix makes ujson ignore the problem
and instead assume no Decimal object will be
passed in to ujson.dumps().
2013-08-19 08:23:41 -03:00
Kieran O'Mahony
6242c253af whitespace fix 2013-06-18 14:21:43 +01:00
Jonas Tarnstrom
4e4dc5e4cc Added 2 bytes to the string reservation macro to guaranteed to able to hold the quotes 2013-06-11 08:09:57 +02:00
Jonas Tarnstrom
4073babe2c Merged (line-by-line prv pointer additions from ujson4c project. Bumped version 2013-06-10 12:44:04 +02:00
Jonas Tarnstrom
97b3af67ae Bumped version 2013-06-10 12:15:22 +02:00
Mikhail Sychev
e098bd1ce9 Fixed style of .c and .h files to use 2 spaces instead of 4 spaces and tabs and added some braces for easier code reading. 2013-05-08 13:52:53 -07:00
jtarnstrom
3492d4c751 Reapplied code formatting for MSVC, sorry guys 2013-02-12 17:15:42 +01:00
jtarnstrom
fd6cc28ab9 Added support for python decimal. Forward ported encode_html_chars patch. Made it all into one big nice commit 2013-02-12 17:15:42 +01:00
jtarnstrom
c5c3c7fbbc Added precise_float directive to make decoder use more precise but slower strtod for double decoding instead of built-in faster functions 2013-02-12 17:15:41 +01:00
unknown
42e7d1d9da Hopefully fixed integer and double decoding capabilities to match those of the old decoder 2013-01-18 16:17:47 +01:00
unknown
d185144ec6 Preamble and version number 2013-01-16 16:32:13 +01:00
unknown
a2e9adb885 Updated license preamble 2013-01-16 16:22:08 +01:00
unknown
bdf13516d2 Implemented encoder support for Python Set object and derivatives. Bumped version 2012-12-17 17:49:38 +01:00
unknown
dd4aacd70f Fixed type-o in pull request. Bumped version 2012-12-17 15:32:44 +01:00
unknown
9bdde8d8e8 Improved double decoding performance and added additional tests 2012-12-17 15:27:19 +01:00
unknown
6d6c8a87d2 Fixed error message being overwritten with incorrect one when decoding overlong integers in an array 2012-12-17 14:50:14 +01:00
Jonas Tärnström
d5615fedf8 Update python/version.h 2012-11-05 11:31:24 +01:00
Jonas Tarnstrom
0aebc2b291 Bumped version to avoid confusion on pypi 2012-10-01 13:55:08 +02:00
Jonas Tarnstrom
b7bdaa8cd7 Added ValueError exception to decoder when values are too big 2012-09-24 17:20:11 +02:00
Jonas Tarnstrom
ad25661f95 Bumped version 2012-08-14 11:24:28 +02:00
Jonas Tarnstrom
a6af1d09c6 Updated license to 3-clause BSD 2012-06-25 11:29:54 +02:00
Kieran O'Mahony
fd3e969987 fix ref leaks in datetime code 2012-06-12 16:25:40 +01:00
Kieran O'Mahony
6901f41a7c memory alignment fixes
Avoids segmentation faults on strict architectures e.g. SPARC
2012-06-12 12:05:00 +01:00
Kieran O'Mahony
06992a2072 Python 3 support 2012-06-12 12:04:59 +01:00
Kieran O'Mahony
fda0329ca9 msvc build fixes 2012-06-12 12:04:59 +01:00
Kieran O'Mahony
35ba3e9da0 better datetime & date handling 2012-06-12 12:04:59 +01:00
Kieran O'Mahony
79e980641d fix compiler warnings
& remove redundant enum
2012-06-12 12:04:59 +01:00
Kieran O'Mahony
d041aba16a tabs -> spaces, convert newlines 2012-06-12 12:04:59 +01:00
unknown
83f1ee99f7 Restructured code for better pypi packaging 2012-02-07 17:11:29 +01:00
unknown
5b121194af Fixed building of PIP which onces agains needs copying into python directory 2012-02-07 10:11:37 +01:00
unknown
dc6eb2f9e4 Improved pypi information 2012-02-07 09:00:52 +01:00
unknown
949825d16d Bumped version for pypi release 2012-02-07 08:30:41 +01:00
Jonas Trnstrm
5950848bf9 Changed default recursion limit. Added new benchmark 2012-01-27 15:25:36 +01:00
Jonas
af5ab41861 Updated benchmarks to include yajl 2012-01-27 13:47:39 +01:00
Mike Krieger
6b89292e5e Allow a kwarg to be passed in specifying the double precision 2012-01-03 16:33:34 -08:00