Usage help (in JSON) if no query string and turned error messages into JSON responses