Set the content type to json for the json route