Fix regression: default to JSON type on GET requests.