enforce json

client does not need to specify .json in the request url or in the header to get a json response