Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove spaces from json raw #132

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

cristianoventura
Copy link
Collaborator

This PR removes spaces between attributes of a JSON that was being displayed in the raw version.

Before:

{ "key": "value", "array": [ 1, 2, 3, 4 ] }

After:

{"key":"value","array":[1,2,3,4]}
  • Inspect a JSON response
  • Check that the Raw tab doesn't contain spaces between properties for JSON content
  • Check that no functional changes affect the Raw tab for other content types such as HTML
image

@cristianoventura cristianoventura self-assigned this Sep 6, 2024
@cristianoventura cristianoventura marked this pull request as ready for review September 6, 2024 18:31
@cristianoventura cristianoventura changed the title fix: remove spaces spaces from json raw fix: remove spaces from json raw Sep 6, 2024
Copy link
Member

@Llandy3d Llandy3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works like a charm 🙌

@cristianoventura cristianoventura merged commit d34f7f3 into main Sep 8, 2024
1 check passed
@cristianoventura cristianoventura deleted the fix/raw-content-contain-spaces branch September 8, 2024 23:44
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