Respond correctly to a json request with no query

Currently this will raise an exception due to a missing json template.
Make it return something in the correct format.

https://www.pivotaltracker.com/story/show/71237760