Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.2k
Star
74.3k
Code
Issues
5k+
Pull requests
2.5k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cpython
Lib
json
encoder.py
on
main
User selector
All users
All time
Commit history
Commits on Aug 11, 2026
gh-150820: Speed up json.dumps() for small documents (GH-150827)
Show description for 4d30756
gaborbernat
authored
4d30756
View commit details
Copy full SHA for 4d30756
View code at this point
Browse repository at this point
Commits on Feb 21, 2026
gh-141510, PEP 814: Add frozendict support to json (#144903)
vstinner
authored
7b0bd9e
View commit details
Copy full SHA for 7b0bd9e
View code at this point
Browse repository at this point
Commits on Nov 18, 2025
GH-141686: Break cycles created by JSONEncoder.iterencode (GH-141687)
brandtbucher
authored
4cfa695
View commit details
Copy full SHA for 4cfa695
View code at this point
Browse repository at this point
Commits on Nov 8, 2025
gh-140793: Improve documentatation and tests for the ensure_ascii option in the json module (GH-140906)
Show description for 7e90bac
serhiy-storchaka
authored
7e90bac
View commit details
Copy full SHA for 7e90bac
View code at this point
Browse repository at this point
Commits on Jun 3, 2025
gh-131884: Fix incorrect formatting in json.dumps() when using indent and skipkeys=True (GH-132200)
roeibenartzi
authored
ec12559
View commit details
Copy full SHA for ec12559
View code at this point
Browse repository at this point
Commits on Apr 8, 2025
gh-132021: Add bool type to the list of allowed JSON key types (#132048)
Show description for 403886c
srinivasreddy
and
ericvsmith
authored
403886c
View commit details
Copy full SHA for 403886c
View code at this point
Browse repository at this point
Commits on Jul 23, 2024
gh-122163: Add notes for JSON serialization errors (GH-122165)
Show description for e6b25e9
serhiy-storchaka
authored
e6b25e9
View commit details
Copy full SHA for e6b25e9
View code at this point
Browse repository at this point
Commits on May 6, 2024
gh-95382: Improve performance of json encoder with indent (GH-118105)
eendebakpt
authored
05adfbb
View commit details
Copy full SHA for 05adfbb
View code at this point
Browse repository at this point
Commits on Feb 28, 2024
doc: Use super() in subclassed JSONEncoder examples (GH-115565)
Show description for 647053f
phorward
authored
647053f
View commit details
Copy full SHA for 647053f
View code at this point
Browse repository at this point
Commits on Sep 24, 2022
gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961)
serhiy-storchaka
authored
db39050
View commit details
Copy full SHA for db39050
View code at this point
Browse repository at this point
Commits on Feb 3, 2022
bpo-46565: `del` loop vars that are leaking into module namespaces (GH-30993)
sobolevn
authored
0cbdd21
View commit details
Copy full SHA for 0cbdd21
View code at this point
Browse repository at this point
Commits on Dec 7, 2021
bpo-46001: Change OverflowError to RecursionError in JSON library docstrings (GH-29943)
SnoopJ
authored
8db0652
View commit details
Copy full SHA for 8db0652
View code at this point
Browse repository at this point
Commits on May 6, 2019
bpo-36793: Remove unneeded __str__ definitions. (GH-13081)
Show description for 96aeaec
serhiy-storchaka
authored
96aeaec
View commit details
Copy full SHA for 96aeaec
View code at this point
Browse repository at this point
Commits on Jul 6, 2018
bpo-23493: json: Change sort_keys in Python encoder same to C (GH-8131)
Show description for e25399b
methane
authored
e25399b
View commit details
Copy full SHA for e25399b
View code at this point
Browse repository at this point
Commits on Nov 25, 2017
bpo-24641: Improved error message for JSON unserializible keys. (#4364)
Show description for cfa797c
serhiy-storchaka
authored
cfa797c
View commit details
Copy full SHA for cfa797c
View code at this point
Browse repository at this point
Commits on Jun 21, 2016
Issue #18726: All optional parameters of the dump(), dumps(),
Show description for aacd53f
serhiy-storchaka
committed
aacd53f
View commit details
Copy full SHA for aacd53f
View code at this point
Browse repository at this point
Commits on Apr 10, 2016
Issue #26623: TypeError message for JSON unserializible object now contains
Show description for 47c5474
serhiy-storchaka
committed
47c5474
View commit details
Copy full SHA for 47c5474
View code at this point
Browse repository at this point
Issue #26719: More efficient formatting of ints and floats in json.
serhiy-storchaka
committed
e0805cf
View commit details
Copy full SHA for e0805cf
View code at this point
Browse repository at this point
Commits on Jan 11, 2015
Issue #23206: Make ``json.dumps(..., ensure_ascii=False)`` as fast as the default case of ``ensure_ascii=True``. Patch by Naoki Inada.
pitrou
committed
dc3eaa8
View commit details
Copy full SHA for dc3eaa8
View code at this point
Browse repository at this point
Commits on Aug 10, 2013
Close #18264: int- and float-derived enums now converted to int or float.
ethanfurman
committed
a4998a7
View commit details
Copy full SHA for a4998a7
View code at this point
Browse repository at this point
Commits on Jul 4, 2013
Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)
brettcannon
committed
cd171c8
View commit details
Copy full SHA for cd171c8
View code at this point
Browse repository at this point
Commits on Jun 14, 2013
Issue #18200: Update the stdlib (except tests) to use
Show description for 0a14066
brettcannon
committed
0a14066
View commit details
Copy full SHA for 0a14066
View code at this point
Browse repository at this point
Commits on Mar 18, 2013
Merge #16057: Clarify why the base method default is called in custom encoders.
Show description for fbb1815
bitdancer
committed
fbb1815
View commit details
Copy full SHA for fbb1815
View code at this point
Browse repository at this point
#16057: Clarify why the base method default is called in custom encoders.
Show description for dd24617
bitdancer
committed
dd24617
View commit details
Copy full SHA for dd24617
View code at this point
Browse repository at this point
Commits on Nov 28, 2012
#16333: use (",", ": ") as default separator when indent is specified to avoid trailing whitespace. Patch by Serhiy Storchaka.
ezio-melotti
committed
1003144
View commit details
Copy full SHA for 1003144
View code at this point
Browse repository at this point
#16333: document a way to get rid of trailing whitespace when indent is used.
ezio-melotti
committed
d654ded
View commit details
Copy full SHA for d654ded
View code at this point
Browse repository at this point
Commits on Oct 1, 2012
more yield from
Show description for fd0d3e5
pjenvey
committed
fd0d3e5
View commit details
Copy full SHA for fd0d3e5
View code at this point
Browse repository at this point
Commits on May 21, 2012
#14875: Use float('inf') instead of float('1e66666') in the json module.
ezio-melotti
committed
898d51d
View commit details
Copy full SHA for 898d51d
View code at this point
Browse repository at this point
Commits on Apr 13, 2011
Merge #10019: Fix regression relative to 2.6: add newlines if indent=0
Show description for d531548
bitdancer
committed
d531548
View commit details
Copy full SHA for d531548
View code at this point
Browse repository at this point
#10019: Fix regression relative to 2.6: add newlines if indent=0
Show description for 3dd02d6
bitdancer
committed
3dd02d6
View commit details
Copy full SHA for 3dd02d6
View code at this point
Browse repository at this point
Commits on Oct 31, 2010
Issue #5729: json.dumps to support using '\t' as an indent string
rhettinger
committed
b643ef8
View commit details
Copy full SHA for b643ef8
View code at this point
Browse repository at this point
Commits on Oct 6, 2010
Merged revisions 82805-82806,83523-83527,83536,83538,83542,83546-83548,83550-83555,83558,83560 via svnmerge from
Show description for 4009c9e
birkenfeld
committed
4009c9e
View commit details
Copy full SHA for 4009c9e
View code at this point
Browse repository at this point
Commits on Aug 14, 2010
Merged revisions 83212,83829,83833,83838-83839,83878,84019,84025,84028,84032,84036 via svnmerge from
Show description for b4efb3d
florentx
committed
b4efb3d
View commit details
Copy full SHA for b4efb3d
View code at this point
Browse repository at this point
Commits on Aug 2, 2010
#9087: update json docstrings -- unicode and long do not exist anymore.
birkenfeld
committed
c8284cf
View commit details
Copy full SHA for c8284cf
View code at this point
Browse repository at this point
Commits on Jul 28, 2010
Syntax cleanup.
florentx
committed
02ea12b
View commit details
Copy full SHA for 02ea12b
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.