YAML parsing doesn't work for all responses. So making json as default.