Skip to content

Format JSON if jq: filter used on embedded JSON#3803

Open
RickyRomero wants to merge 2 commits intodgtlmoon:masterfrom
RickyRomero:master
Open

Format JSON if jq: filter used on embedded JSON#3803
RickyRomero wants to merge 2 commits intodgtlmoon:masterfrom
RickyRomero:master

Conversation

@RickyRomero
Copy link
Copy Markdown

This fixes an issue where jq: filters will not pretty-print their output if filtering JSON embedded in HTML, for example.

Reproduction steps:

Preview before this change:
image

Preview after this change:
image

@dgtlmoon
Copy link
Copy Markdown
Owner

nice one, tho this will trigger changes for people perhaps

also a good option please add is

    sort_keys=True

@RickyRomero
Copy link
Copy Markdown
Author

@dgtlmoon Done, please review.

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