The REST API is currently provided by Datasette.
All web views can be configured to deliver JSON by simply changing the file extension in the URL to .json.
.json
For example:
curl --location http://0.0.0.0:8001/main/tasks_view.json