WIP: Fix failing test, add JSON response to docs.