-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-131884: Fix incorrect formatting in json.dumps()
when using indent
and skipkeys=True
#132200
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
gh-131884: Fix incorrect formatting in json.dumps()
when using indent
and skipkeys=True
#132200
Conversation
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, this matches what I did in jsonyx.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. 👍
Thanks @roeibenartzi for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…indent and skipkeys=True (pythonGH-132200) (cherry picked from commit ec12559) Co-authored-by: Roei Ben Artzi <[email protected]>
Sorry, @roeibenartzi and @serhiy-storchaka, I could not cleanly backport this to
|
GH-135060 is a backport of this pull request to the 3.14 branch. |
… using indent and skipkeys=True (pythonGH-132200) (cherry picked from commit ec12559) Co-authored-by: Roei Ben Artzi <[email protected]>
GH-135061 is a backport of this pull request to the 3.13 branch. |
… using indent and skipkeys=True (pythonGH-132200) (cherry picked from commit ec12559) Co-authored-by: Roei Ben Artzi <[email protected]>
Thank you for your contribution @roeibenartzi. Please sign the CLI also for your GitHub address. This is necessary for backporting. |
json.dump()
withindent
andskipkeys
can be formatted incorrectly #131884