Bernie Hackett
749c1a2f0b
PYTHON-1467 - PyMongo no longer supports Python 2.6
2018-07-02 15:15:43 -07:00
Bernie Hackett
507f954ed4
Update copyright dates
2017-12-01 17:23:39 -08:00
Bernie Hackett
410027c057
PYTHON-1387 - Improve detection of object_pairs_hook support
2017-09-30 09:28:09 -07:00
Shane Harvey
b7893b7ec4
3.5 changelog and documentation fixes.
2017-08-08 09:32:09 -07:00
Shane Harvey
6e022e0636
PYTHON-1297 Improve documentation for Extended JSON.
2017-08-07 17:14:34 -07:00
Shane Harvey
054a01aaff
PYTHON-1297 Implement Extended JSON Spec 2.0
...
Add JSONOptions.json_mode to control encoding Relaxed and Canonical
Extended JSON.
Add json_util.LEGACY_JSON_OPTIONS to encode PyMongo 3.4's default JSON output.
Deprecate json_util.STRICT_JSON_OPTIONS.
Move Decimal128 spec tests to bson_corpus runner.
2017-08-03 10:30:24 -07:00
Shane Harvey
6a11888a9c
PYTHON-1330 Decode JSON binary type 0 to Python 3 bytes.
2017-07-31 13:16:46 -07:00
Luke Lovett
74c0d55314
PYTHON-1214 - Implement the extended JSON specification.
2017-02-22 10:32:29 -08:00
Bernie Hackett
afa14fb3a2
Link to python-bsonjs on pypi
2016-11-29 09:31:27 -08:00
Shane Harvey
0abcb7a683
Advertise python-bsonjs in json_util and FAQ documentation
2016-11-28 17:36:40 -08:00
Bernie Hackett
c0767a551a
PYTHON-1153 - Make docs build and test under python 3
2016-09-26 15:49:59 -07:00
Shane Harvey
888d0fab1f
PYTHON-1135 Replace JSONOptions.strict_date with JSONOptions.datetime_representation
2016-09-12 11:11:30 -07:00
Bernie Hackett
82db71e1e8
PYTHON-1068 - Support for BSON Decimal128
2016-08-29 15:07:07 -07:00
Luke Lovett
b6c74cf33d
PYTHON-1106 - Implement BSON corpus test suite.
2016-08-24 11:01:45 -07:00
Luke Lovett
6692e8877a
PYTHON-1131 - Fix inconsistent handling of scope, unicode support for Code.
2016-08-19 15:22:19 -07:00
Shane Harvey
6e2ecc1817
PYTHON-1111 JSONOptions.document_class requires simplejson in Python2.6
2016-08-01 10:05:16 -07:00
Shane Harvey
57d1ccde2f
PYTHON-1111 Add JSONOptions for dumps and loads
...
PYTHON-767 Support JSON strict mode $date output
PYTHON-1039 Support JSON strict mode $numberLong output
PYTHON-1103 Support JSON strict mode UUID output
PYTHON-1111 Support custom document class in loads
PYTHON-1111 Support tz_aware and tzinfo in loads
Refactor milliseconds to datetime conversions
2016-07-27 11:32:59 -07:00
Shane Harvey
5afd19922a
PYTHON-1111 Add JSONOptions for dumps and loads
2016-07-22 12:10:29 -07:00
Bernie Hackett
59d8fdadc1
PYTHON-1058 - Support decoding datetime.isoformat format for $date
...
This change also adds support for the (+|-)HH offset format.
2016-05-20 13:12:47 -07:00
Bernie Hackett
aec685b374
Fix up copyright dates.
2015-03-25 11:55:02 -07:00
Bernie Hackett
bba49fd618
PYTHON-864 - Support RFC-3339 offset format for $date.
2015-03-20 16:23:55 -07:00
A. Jesse Jiryu Davis
2ba730722b
PYTHON-526 Remove 'compile_re' option.
...
PyMongo now never attempts to compile BSON regular expressions as Python native
regular expressions.
2014-12-05 14:06:38 -05:00
A. Jesse Jiryu Davis
2c6483b348
Rely on standard json module.
...
Now that we've dropped Python 2.4 and 2.5, we know the standard json module is
available.
2014-12-03 16:32:41 -05:00
Bernie Hackett
5aee3e1b31
PYTHON-791 - Fix JSON support for Timestamp.
2014-11-21 14:35:48 -08:00
A. Jesse Jiryu Davis
08dccbba46
Remove ancient version annotations.
...
Delete "versionchanged" and "versionadded" directives that predate 2.0.
2014-10-31 14:15:24 -04:00
Bernie Hackett
9c8852d93f
PYTHON-760 - BSONInt64 -> Int64
2014-09-23 11:43:41 -07:00
Bernie Hackett
6595657128
PYTHON-759 - Support $date as ISO-8601 or $numberLong
2014-09-17 14:02:18 -07:00
Luke Lovett
35c7445a67
PYTHON-708 Support $undefined and $numberLong extended JSON types.
2014-07-18 16:46:35 +00:00
Bernie Hackett
2b79325d3b
PYTHON-686 - Remove a bunch of references to 2.4 and 2.5
2014-04-24 12:40:29 -07:00
Bernie Hackett
b26459cd6a
Remove useless uuid module checks.
...
These were only needed for python 2.4 which does
not provide a uuid module.
2014-04-24 10:09:21 -07:00
Bernie Hackett
bd8d4a3b10
PYTHON-673 - Use bytes and remove binary_type
...
The binary_type alias was added to support python
2.4 and 2.5, which we no longer support.
2014-04-23 13:25:00 -07:00
Luke Lovett
69ce42c5a0
PYTHON-675 python 2/3 single-source for the gridfs module
2014-04-23 18:37:02 +00:00
Luke Lovett
d494105aa4
PYTHON-674 python 2/3 single-source for the pymongo module
2014-04-23 18:26:18 +00:00
Bernie Hackett
2e4259f333
PYTHON-673 - Fix a json_util issue in python 3.x
2014-04-22 13:34:37 -07:00
Luke Lovett
d4a94d30fd
PYTHON-673 python 2/3 single-source for the bson module
2014-04-17 21:29:15 +00:00
A. Jesse Jiryu Davis
2fa1750b07
Update copyright notices and company name.
2014-01-31 09:36:46 -05:00
Bernie Hackett
21d0bd0ff8
Fix json_util example PYTHON-602
2014-01-30 17:12:56 -08:00
Bernie Hackett
f423c079d9
Fix a few documentation issues.
2014-01-14 10:06:16 -08:00
A. Jesse Jiryu Davis
2f67eff07e
Note that we can't preserve key order in json_util.dumps in Python 2.4, PYTHON-602.
2013-12-14 12:33:46 -05:00
A. Jesse Jiryu Davis
c672b8c3cb
Python 3 compatibility when json-encoding regexes, PYTHON-602.
2013-12-14 12:33:37 -05:00
A. Jesse Jiryu Davis
ca53fee347
Simplify json_util.default
2013-12-13 18:21:26 -05:00
A. Jesse Jiryu Davis
51deead4ff
Preserve order in json_util.dumps, PYTHON-602.
2013-12-13 18:21:26 -05:00
A. Jesse Jiryu Davis
4b5ba70724
Support new bson.regex.Regex instances in json_util.dumps, PYTHON-500.
2013-12-13 18:21:26 -05:00
A. Jesse Jiryu Davis
e4cf504559
Option to not compile BSON regexes. PYTHON-500
...
Add a 'compile_re' parameter to Collection.find, Collection.find_one, and
json_util.loads. If it's False, regular expressions are encoded as a new class,
Regex, instead of passed to re.compile(). This allows PyMongo to handle regular
expressions that don't compile in Python but are valid in other contexts like
MongoDB queries.
2013-10-20 17:18:32 -04:00
behackett
033a7f1270
Fix json_util doctests.
2013-10-01 19:35:02 -07:00
behackett
f47f8d69d0
Fix json_util example rendering.
2013-08-23 15:04:57 -07:00
Jorge Puente Sarrín
e1d71e8770
Minor typo on bson/json_util docstring
2013-05-12 23:35:19 -05:00
behackett
cd1589eaba
Mark RE_OPT_TABLE private.
2013-04-25 12:39:50 -07:00
behackett
176e39e74a
Fix misc. $options issues in json_util PYTHON-510
2013-04-24 18:27:38 -07:00
Ross Lawley
a31cac0889
json_util fix format for binary type PYTHON-443
2012-12-05 16:23:33 +00:00