René's URL Explorer Experiment


Title: Contradictory sentences in json docs · Issue #146061 · python/cpython · GitHub

Open Graph Title: Contradictory sentences in json docs · Issue #146061 · python/cpython

X Title: Contradictory sentences in json docs · Issue #146061 · python/cpython

Description: Documentation In the json docs, it is said that "the most compact representation" for json is used if None is passed as indent to json.dump (the default behaviour), under the json.dump "Parameters" section. However, under the description...

Open Graph Description: Documentation In the json docs, it is said that "the most compact representation" for json is used if None is passed as indent to json.dump (the default behaviour), under the json.dump "Parameters"...

X Description: Documentation In the json docs, it is said that "the most compact representation" for json is used if None is passed as indent to json.dump (the default behaviour), under the json.dump &q...

Opengraph URL: https://github.com/python/cpython/issues/146061

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Contradictory sentences in json docs","articleBody":"### Documentation\n\nIn the [json docs](https://docs.python.org/3/library/json.html), it is said that \"the most compact representation\" for json is used if `None` is passed as `indent` to `json.dump` (the default behaviour), under the `json.dump` \"Parameters\" section.\n\nHowever, under the description for the `separators` parameter, this is said: \"If [separators is ]None (the default), separators defaults to (', ', ': ') if indent is None, and (',', ': ') otherwise. For the most compact JSON, specify (',', ':') to eliminate whitespace.\" The claim that the default behaviour gives \"the most compact representation\" is thus wrong; `separators=(',', ':')` is actually required as well.\n\nSection concerned ([source](https://github.com/python/cpython/blob/main/Doc/library/json.rst#basic-usage)):\n\n```rst\n   :param indent:\n      If a positive integer or string, JSON array elements and\n      object members will be pretty-printed with that indent level.\n      A positive integer indents that many spaces per level;\n      a string (such as ``\"\\t\"``) is used to indent each level.\n      If zero, negative, or ``\"\"`` (the empty string),\n      only newlines are inserted.\n      If ``None`` (the default), the most compact representation is used.\n   :type indent: int | str | None\n\n   :param separators:\n      A two-tuple: ``(item_separator, key_separator)``.\n      If ``None`` (the default), *separators* defaults to\n      ``(', ', ': ')`` if *indent* is ``None``,\n      and ``(',', ': ')`` otherwise.\n      For the most compact JSON,\n      specify ``(',', ':')`` to eliminate whitespace.\n   :type separators: tuple | None\n```\n\nI can open a PR if required.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-146095\n* gh-149667\n* gh-149668\n* gh-149669\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/jonathandung","@type":"Person","name":"jonathandung"},"datePublished":"2026-03-17T14:18:29Z","url":"https://github.com/python/cpython/issues/146061"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3cf28191-1ab2-d8a7-b8c0-daf037053913
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE6C8:1C94F:2B4824E:3779B3C:6B01F7A7
html-safe-nonce0c4658bfb83e147083b1a0f7519e8ef61425d3faa8f93a4c4b1d1a49aa9d4dd3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkM4OjFDOTRGOjJCNDgyNEU6Mzc3OUIzQzo2QjAxRjdBNyIsInZpc2l0b3JfaWQiOiI3OTA5ODU4MTAzMzY4MjE4NTM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc6a0aaa1f1bd9f3c630e1d9427f79ad50dee2d79c7be91744f54656171fbb71f
hovercard-subject-tagissue:4088876594
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/146061/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1ae29d12905ceedde3650f19ffce55005b0dcb193ec2c5b4a4f18e21ba2231b7/python/cpython/issues/146061
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1ae29d12905ceedde3650f19ffce55005b0dcb193ec2c5b4a4f18e21ba2231b7/python/cpython/issues/146061
og:image:altDocumentation In the json docs, it is said that "the most compact representation" for json is used if None is passed as indent to json.dump (the default behaviour), under the json.dump "Parameters"...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejonathandung
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/146061#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F146061
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F146061
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/146061
Reloadhttps://github.com/python/cpython/issues/146061
Reloadhttps://github.com/python/cpython/issues/146061
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/146061
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/146061
#146095https://github.com/python/cpython/pull/146095
Contradictory sentences in json docshttps://github.com/python/cpython/issues/146061#top
#146095https://github.com/python/cpython/pull/146095
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
triagedThe issue has been accepted as valid by a triager.https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22triaged%22
https://github.com/jonathandung
jonathandunghttps://github.com/jonathandung
on Mar 17, 2026https://github.com/python/cpython/issues/146061#issue-4088876594
json docshttps://docs.python.org/3/library/json.html
sourcehttps://github.com/python/cpython/blob/main/Doc/library/json.rst#basic-usage
gh-146061: Fix contradicting sentences in json docs #146095https://github.com/python/cpython/pull/146095
[3.15] gh-146061: Clarify indent=None in json docs (GH-146095) #149667https://github.com/python/cpython/pull/149667
[3.14] gh-146061: Clarify indent=None in json docs (GH-146095) #149668https://github.com/python/cpython/pull/149668
[3.13] gh-146061: Clarify indent=None in json docs (GH-146095) #149669https://github.com/python/cpython/pull/149669
jonathandunghttps://github.com/jonathandung
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
on Mar 17, 2026https://github.com/python/cpython/issues/146061#event-23645942428
github-project-automationhttps://github.com/apps/github-project-automation
docs issueshttps://github.com/orgs/python/projects/52
on Mar 17, 2026https://github.com/python/cpython/issues/146061#event-23645943825
github-project-automationhttps://github.com/apps/github-project-automation
docs issueshttps://github.com/orgs/python/projects/52
on Mar 17, 2026https://github.com/python/cpython/issues/146061
eendebakpthttps://github.com/eendebakpt
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
on Mar 17, 2026https://github.com/python/cpython/issues/146061#event-23649626708
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
on Mar 17, 2026https://github.com/python/cpython/issues/146061#issuecomment-4076102749
@jonathandunghttps://github.com/jonathandung
eendebakpthttps://github.com/eendebakpt
triagedThe issue has been accepted as valid by a triager.https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22triaged%22
on Mar 17, 2026https://github.com/python/cpython/issues/146061#event-23649921416
StanFromIrelandhttps://github.com/StanFromIreland
JSON issueshttps://github.com/orgs/python/projects/6
on Mar 17, 2026https://github.com/python/cpython/issues/146061#event-23652948828
https://github.com/jonathandung
jonathandunghttps://github.com/jonathandung
on Mar 17, 2026https://github.com/python/cpython/issues/146061#issuecomment-4078471117
jonathandunghttps://github.com/jonathandung
on Mar 17, 2026https://github.com/python/cpython/issues/146061#event-23662768021
Fix python#146061https://github.com/jonathandung/cpython/commit/17a33370022626b11ce7fc48ed7633503f696aa9
python#146061https://github.com/python/cpython/issues/146061
https://docs.github.com/articles/closing-issues-via-commit-messages
17a3337https://github.com/jonathandung/cpython/commit/17a33370022626b11ce7fc48ed7633503f696aa9
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Mar 18, 2026https://github.com/python/cpython/issues/146061#issuecomment-4083570048
https://github.com/jonathandung
jonathandunghttps://github.com/jonathandung
on Mar 19, 2026https://github.com/python/cpython/issues/146061#issuecomment-4086817467
json.dump docstringhttps://github.com/python/cpython/blob/abd5246305655fc09e4e3c668c8ca09a1b0fc638/Lib/json/__init__.py#L143
https://github.com/jonathandung
jonathandunghttps://github.com/jonathandung
on Mar 19, 2026https://github.com/python/cpython/issues/146061#issuecomment-4086836074
serhiy-storchakahttps://github.com/serhiy-storchaka
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#146095https://github.com/python/cpython/pull/146095
on May 11, 2026https://github.com/python/cpython/issues/146061#event-25378825128
serhiy-storchakahttps://github.com/serhiy-storchaka
on May 11, 2026https://github.com/python/cpython/issues/146061#event-25378825205
gh-146061: Clarify indent=None in json docs (GH-146095)https://github.com/python/cpython/commit/833dae7c1fdc556200cbfc3e76bad4d54628042c
gh-146061https://github.com/python/cpython/issues/146061
GH-146095https://github.com/python/cpython/pull/146095
833dae7https://github.com/python/cpython/commit/833dae7c1fdc556200cbfc3e76bad4d54628042c
github-project-automationhttps://github.com/apps/github-project-automation
JSON issueshttps://github.com/orgs/python/projects/6
on May 11, 2026https://github.com/python/cpython/issues/146061
serhiy-storchakahttps://github.com/serhiy-storchaka
on May 11, 2026https://github.com/python/cpython/issues/146061#event-25379687323
[3.13] gh-146061: Clarify indent=None in json docs (GH-146095) (GH-14…https://github.com/python/cpython/commit/a42082b6a1e2a71270ea2541ee2285ec52435ec4
gh-146061https://github.com/python/cpython/issues/146061
GH-146095https://github.com/python/cpython/pull/146095
GH-14…https://github.com/python/cpython/pull/149669
a42082bhttps://github.com/python/cpython/commit/a42082b6a1e2a71270ea2541ee2285ec52435ec4
[3.14] gh-146061: Clarify indent=None in json docs (GH-146095) (GH-14…https://github.com/python/cpython/commit/b1faed5489b0590e4e16245024168673faec0752
gh-146061https://github.com/python/cpython/issues/146061
GH-146095https://github.com/python/cpython/pull/146095
GH-14…https://github.com/python/cpython/pull/149668
b1faed5https://github.com/python/cpython/commit/b1faed5489b0590e4e16245024168673faec0752
[3.15] gh-146061: Clarify indent=None in json docs (GH-146095) (GH-14…https://github.com/python/cpython/commit/4277df2421bc5b39ce5a133c032f8ef5428d3718
gh-146061https://github.com/python/cpython/issues/146061
GH-146095https://github.com/python/cpython/pull/146095
GH-14…https://github.com/python/cpython/pull/149667
4277df2https://github.com/python/cpython/commit/4277df2421bc5b39ce5a133c032f8ef5428d3718
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/146061
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/146061
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
triagedThe issue has been accepted as valid by a triager.https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22triaged%22
JSON issueshttps://github.com/orgs/python/projects/6
docs issueshttps://github.com/orgs/python/projects/52
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.