Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,11 @@ This is a shortcut to passing the data to the
:func:`~flask.json.jsonify` function, which will serialize any supported
JSON data type. That means that all the data in the dict or list must be
JSON serializable.
.. note::

When sending JSON requests, clients must include the
``Content-Type: application/json`` header.
Otherwise, ``request.get_json()`` may return ``None``.

For complex types such as database models, you'll want to use a
serialization library to convert the data to valid JSON types first.
Expand Down