flask/flask
pgjones 7bf8366970
Allow dictionary return values as JSON
This supports an increasingly common usecase whereby JSON is the
primary response (rather than a templated string). Given Flask has a
short syntax for HTML reponses, it seems fitting that it should also
do so for JSON responses. In practice it allows,

     @app.route("/")
     def index():
         return {
             "api_stuff": "values",
         }
2019-05-24 09:48:55 -07:00
..
json support dataclass in JSONEncoder 2019-05-18 21:37:54 -07:00
__init__.py release version 1.0.3 2019-05-17 10:57:51 -07:00
__main__.py Reformat with black 2019-05-06 16:28:58 -04:00
_compat.py Reformat with black 2019-05-06 16:28:58 -04:00
app.py Allow dictionary return values as JSON 2019-05-24 09:48:55 -07:00
blueprints.py Remove ending slash from static_url_path 2019-05-18 21:23:14 -07:00
cli.py add SeparatedPathType to accept multiple paths 2019-05-24 07:19:56 -07:00
config.py Reformat with black 2019-05-06 16:28:58 -04:00
ctx.py Merge branch '1.0.x' 2019-05-16 12:18:36 -07:00
debughelpers.py Reformat with black 2019-05-06 16:28:58 -04:00
globals.py Reformat with black 2019-05-06 16:28:58 -04:00
helpers.py clean up open_resource and tests 2019-05-17 13:23:27 -07:00
logging.py Reformat with black 2019-05-06 16:28:58 -04:00
sessions.py Reformat with black 2019-05-06 16:28:58 -04:00
signals.py FakeSignal should stub connect_via method 2019-05-23 07:44:57 -07:00
templating.py Reformat with black 2019-05-06 16:28:58 -04:00
testing.py Merge branch '1.0.x' 2019-05-17 11:13:08 -07:00
views.py Inherit "methods" in MethodView 2019-05-17 13:57:06 -07:00
wrappers.py Use Werkzeug's JSONMixin class and update tests 2019-05-18 20:57:26 -07:00