Document the boolean query string argument grammar

Boolean arguments parsed by value_as_boolean() accept on/true/1 and
off/false/0 - state this once in the JSON API docs rather than leaving
each argument to imply its own grammar.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GrHZSypDfMnym1tM5XJAFZ
This commit is contained in:
Claude 2026-07-06 23:08:28 +00:00
commit 3322e1f528
No known key found for this signature in database

View file

@ -276,6 +276,10 @@ Here is an example Python function built using `requests <https://requests.readt
Special JSON arguments
----------------------
Boolean query string arguments - such as ``?_labels=`` and
``?_json_infinity=`` - accept ``on``, ``true`` or ``1`` for true and
``off``, ``false`` or ``0`` for false.
Every Datasette endpoint that can return JSON also accepts the following
query string arguments: