Probably related to this issue: How to use a custom router?, with response::json() not working.
response::json()