Skip to content

feat: request compact prettyPrint=false JSON responses from the API - #1600

Open
pawciobiel wants to merge 1 commit into
burnash:masterfrom
pawciobiel:feat/compact-json-by-default
Open

pawciobiel wants to merge 1 commit into
burnash:masterfrom
pawciobiel:feat/compact-json-by-default

Conversation

@pawciobiel

Copy link
Copy Markdown

Google APIs indent JSON by default, and gspread parses every response, so the whitespace only costs transfer and parse time. HTTPClient.request now sends prettyPrint=false unless the caller passes its own value.

Cassettes match on the URI, so all 128 were updated to carry the new parameter; recorded responses are unchanged.

Google APIs indent JSON by default, and gspread parses every response, so
the whitespace only costs transfer and parse time. HTTPClient.request now
sends prettyPrint=false unless the caller passes its own value.

Cassettes match on the URI, so all 128 were updated to carry the new
parameter; recorded responses are unchanged.
@antoineeripret

Copy link
Copy Markdown
Collaborator

Hey @pawciobiel, I'm unsure to understand what the issue with the default behavior is. How ...

the whitespace only costs transfer and parse time.

... is an issue? Genuinely asking, just trying to understand what we want to achieve here because you're modifying 130 files.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants