Nick Pope
eaedb9320c
Fix index example for TaggedJSONSerializer.register()
...
Made the example use a keyword, rather than a positional argument, as
the intent here is to show how to insert a tag with higher precedence.
As a positional argument, this would have been passed to ``force``
instead of ``index``.
2018-04-19 14:16:11 +01:00
Nick Pope
fc6a1d9354
Fix default index for TaggedJSONSerializer.register()
...
Change the default value of ``index`` to ``None`` in ``register()`` so
that it is possible to insert a new tag as the penultimate item in the
order list.
2018-04-19 14:16:11 +01:00
David Lord
ab4142215d
detect UTF encodings when loading json
2018-04-10 09:34:59 -07:00
David Lord
310fbfcf64
revert copyright year to project start
...
add copyright header to files
2018-02-08 12:43:30 -08:00
David Lord
f7983ae96a
concat newline in jsonify
...
ref pallets/werkzeug#1130
2018-01-03 13:06:14 -08:00
Eugene M. Kim
d41e2e6a5d
Correctly encode aware, non-UTC datetime objects
...
http_date() requires timetuple in UTC, but JSONEncoder.default() was
passing a local timetuple instead.
2017-06-14 12:40:53 -07:00
David Lord
9bee2500dd
finish documentation
...
[ci skip]
2017-06-02 08:09:37 -07:00
David Lord
bbd15d53ad
docs style cleanup
...
[ci skip]
2017-06-02 07:03:22 -07:00
David Lord
ca176cb903
pass serializer at tag init instead of to each method
...
split tagged dict and passthrough into separate cases
add docstrings
2017-06-02 06:36:13 -07:00
David Lord
5e1ced3c05
make session serializer extensible
...
support serializing 1-item dicts with tag as key
refactor serializer into flask.json.tag module
continues #1452 , closes #1438 , closes #1908
2017-06-01 22:47:23 -07:00