content_type for JSON should be first match, not last