7.1.1 / 2026-09-23¶
fix: include the JSON decoder’s line and column in
JSONReadError,StringReadError, andURLReadErrormessages, so the CLI reports where the input breaks instead of only that it is invalidfix: accept a UTF-8 byte order mark in file, URL, string, and stdin JSON input
chore: fix the diagnostics ty 0.0.83 reports in tests and make the list-omission test compare its result
7.1.0 / 2026-09-03¶
perf: enforce conversion depth and item limits inside the native payload walk, cutting a 2,000-record accelerated conversion from 7.1 ms to 1.4 ms
fix: keep tuples on the Python serializer; the native backend rendered nested tuples differently under
item_wrap=Falseandlist_headers=Truefix: write identical CLI output to stdout and
--outputfiles, as UTF-8 bytes ending in exactly one newlinefix: accept numbers and other scalars in
dicttoxml_fast.escape_xmlandwrap_cdataon both backendsfix: raise
InvalidDataErrorfromJson2xml.to_xmlfor values the serializer rejects, such as a Mapping that is not a dictfix: classify
datetime.timein the directconvert_kvhelpers the same way the serializer doesfix: report unreadable files distinctly from invalid JSON in
readfromjsonrefactor: load the optional Rust backend through one function that keeps working with
json2xml-rs0.5.0, and log underjson2xml.dicttoxml_fastrefactor: share
SerializerConfigbetween the serializer and the backend selector, adddicttoxml.serialize(), and removeConversionRequestandhas_special_keysrefactor: declare CLI toggles with
BooleanOptionalActionand derive type attributes from one exact-type tablechore: release
json2xml-rs0.6.0 first and require it fromjson2xml[fast]
7.0.1 / 2026-08-28¶
fix: validate explicitly provided empty
--string,--url, and file-path inputs instead of silently falling back to stdin
7.0.0 / 2026-08-23¶
breaking: make compact UTF-8
bytesthe default public and CLI output; callers that require pretty Unicode text must passpretty=Trueor--prettyfix: normalize the parent name a
list_headersdict member borrows, so a rootless list of dictionaries no longer emits the malformed empty tag<>fix: make the optional Rust backend byte-identical to the Python serializer for every payload it accepts, correcting CDATA on numbers, nested list shapes, list member tag names,
type="dict"underlist_headers, and names beginning withxmlfix: keep payloads the Rust backend cannot reproduce exactly – non-JSON-native values, parser-resolved key names, and normalized root names – on the Python serializer
perf: run the Rust backend’s payload gate natively, cutting a 1,000-record conversion from 1.51 ms to 0.49 ms
fix: enforce conversion output limits from generated UTF-8 bytes instead of rejecting valid payloads with a conservative estimate
fix: reject unsupported falsy objects consistently instead of serializing them as null
fix: keep public scalar converter attribute dictionaries unchanged
perf: validate common ASCII XML attribute names without constructing a DOM
fix: serialize date-like values consistently at the root, which previously rejected
datetime.timewhile accepting it inside dicts and listsrefactor: dispatch every element writer through a single type classifier
docs: record the string-returning public converters as a retained compatibility surface
perf: indent pretty output while serializing instead of re-tokenizing generated XML, roughly halving pretty conversion time and removing the last XML parsing path from the library
chore: release
json2xml-rs0.5.0 first and require it fromjson2xml[fast]for parity-safe accelerated installschore: align local pytest, pre-commit, release, and Rust CI configuration with the supported toolchain
chore: move benchmark scripts under
benchmarks/and makepyproject.tomlplusuv.lockthe only dependency declaration
6.5.1 / 2026-08-05¶
security: pin URL connections to validated DNS addresses to prevent DNS-rebinding bypasses of private-network blocking
security: bound encoded and decoded compressed responses to prevent gzip and deflate resource-exhaustion attacks
fix: reject XML 1.0-forbidden characters consistently across Python and Rust serializers instead of emitting invalid XML
fix: require an actual boolean for
allow_private_networksand normalize malformed-hostname failures asURLReadErrorchore: release
json2xml-rs0.4.3 first and require it fromjson2xml[fast]for XML-safe accelerated installsdocs: document URL safety controls, XML validation behavior, migration guidance, and the Rust-first release sequence
6.5.0 / 2026-07-15¶
perf: reduce pure Python serializer time by 31.1% on the deterministic 5,000-record benchmark through exact native-type dispatch
perf: release
json2xml-rs0.4.2 with hybrid SIMD/word XML escape scanning and a 6.23% benchmark reductionfix: preserve numeric, string, dictionary, and sequence subclass behavior across the optimized Python dispatch paths
test: require exactly 100% statement coverage from the complete Python suite and add dense Rust XML escape scanning regression coverage
chore: require
json2xml-rs>=0.4.2fromjson2xml[fast]and validate release wheels before PyPI publicationdocs: add Python and Rust before/after flamegraphs, buffer-capacity measurements, and release performance notes
6.4.0 / 2026-07-13¶
perf: buffer Rust serializer writes in bounded 16 KiB chunks, reducing large-payload conversion time while keeping serializer memory near 80 MiB
chore: release
json2xml-rs0.4.1 and require it fromjson2xml[fast]for accelerated installsdocs: record before-and-after Rust buffering benchmarks and the unchanged XML output size
6.3.0 / 2026-06-10¶
feat: reduce pure Python serializer allocations in hot dict, list, and scalar paths
feat: preserve XML output semantics while reusing validated element-name and attribute work
perf: lower peak memory pressure for large conversions after the 6.2.0 Rust bytes-writer release
docs: add hyperfine Rust memory benchmark notes with reproduction details and the measured throughput tradeoff
chore: release
json2xml-rs0.4.0 and require it fromjson2xml[fast]for accelerated installs
6.2.0 / 2026-06-05¶
feat: reduce peak serializer memory in the pure Python rooted-output path
feat: reduce Rust extension peak serializer memory by writing directly into Python bytes
fix: split PyO3 extension-module linking so
cargo testworks on macOSchore: release
json2xml-rs0.3.0 and makejson2xml[fast]require the memory-saving Rust packagechore: update the Rust extension crate to Rust 2024 with rust-version 1.96
docs: add reproducible Rust memory benchmark results showing about 49% lower serializer RSS delta
6.1.0 / 2026-05-04¶
fix: address open contribution issues (#292)
docs: improve README and add public roadmap (#287)
6.0.7 / 2026-04-26¶
fix: handle JSON conversion edge cases and improve URL reader robustness (#284)
chore(deps-dev): bump pytest from 9.0.1 to 9.0.3 (#282)
6.0.6 / 2026-04-08¶
fix: review cleanup (#281)
fix: remove needless line (#280)
docs: add lat.md support to the codebase (#279)
chore(deps): bump pygments from 2.19.1 to 2.20.0 in /docs (#278)
fix: upgrade Python workflow to 3.12
6.0.5 / 2026-03-12¶
fix: prevent double-escaping of XML attribute values for invalid key names
fix: use Python-compatible float formatting in the Rust backend
fix: propagate iteration errors instead of silently swallowing them
fix: validate
custom_rootas a valid XML element namerefactor: reduce Rust writer allocations and remove duplicated dispatch logic
chore: bump pyo3 and rust binding versions
fix: add missing
xmltodictdependency to Rust CI workflow
History¶
6.0.4 / 2026-02-12¶
fix: remove test dependencies to correct place
docs: generate changelog
bump version
Add rust tests (#271)
feat(rust): make PyO3 optional to fix Python 3.14 fuzz linking (#270)
chore: bump release
fix: upgrade urllib3 to patched version (#269)
Update README.rst (#268)
docs: update README with comprehensive benchmark results
6.0.3 / 2026-01-29¶
bump version
Add rust tests (#271)
feat(rust): make PyO3 optional to fix Python 3.14 fuzz linking (#270)
chore: bump release
fix: upgrade urllib3 to patched version (#269)
Update README.rst (#268)
docs: update README with comprehensive benchmark results
6.0.2 / 2026-01-20¶
fix: upgrade urllib3 to patched version (#269)
Update README.rst (#268)
docs: update README with comprehensive benchmark results
6.0.1 / 2026-01-16¶
feat: enable ‘fast’ optional dependency for easy Rust installation
docs: update benchmarks with comprehensive Python/Rust/Go/Zig comparison
feat: add benchmark_all.py for multi-implementation benchmarking
Installation with Rust acceleration:
pip install json2xml[fast]
6.0.0 / 2026-01-16¶
Major Release: Native Rust Extension for 29x Faster Performance
This release introduces an optional native Rust extension built with PyO3 that provides approximately 29x faster JSON to XML conversion compared to pure Python.
New Features:
feat: add optional Rust extension (json2xml-rs) for ~29x faster performance
feat: add dicttoxml_fast module with automatic backend selection
feat: seamless fallback to pure Python when Rust extension is not installed
feat: pre-built wheels for Linux (x86_64, aarch64), macOS (Intel, Apple Silicon), Windows
Performance Improvements:
Small JSON (47 bytes): 33x faster
Medium JSON (3.2KB): 28x faster
Large JSON (32KB): 30x faster
Very Large JSON (323KB): 29x faster
New Files:
rust/ - PyO3 Rust extension source code
json2xml/dicttoxml_fast.py - Auto-selecting wrapper module
tests/test_rust_dicttoxml.py - 65 comprehensive tests for Rust extension
benchmark_rust.py - Performance comparison script
.github/workflows/build-rust-wheels.yml - CI for building wheels
.github/workflows/rust-ci.yml - CI for Rust code quality
Installation:
Pure Python: pip install json2xml
With Rust acceleration: pip install json2xml-rs (then import from dicttoxml_fast)
Documentation:
Updated README with Rust extension usage and benchmarks
Updated CONTRIBUTING with Rust development guide
5.4.0 / 2026-01-15¶
test: add comprehensive CLI tests for 99% coverage
docs: add CLI usage and cross-reference to Go version
feat: add CLI support for json2xml-py (#266)
chore(deps): bump urllib3 from 2.6.0 to 2.6.3 in /docs (#265)
update documentation and make it more correct (#263)
feat: update doc packages
chore: update GitHub Actions to latest versions (#262)
chore(deps): bump urllib3 from 2.5.0 to 2.6.0 in /docs (#261)
feat: update python3.15.0 to alpha 3 (#260)
feat: bump to match the version
feat: add xPath support (#259)
chore(deps): bump starlette from 0.47.2 to 0.49.1 in /docs (#257)
feat: improvements to ruff and new python 3.15 (#255)
Modernize Python code to 3.10+ with pyupgrade (#254)
check arm build ubuntu (#253)
Remove duplicate typecheck job from pythonpackage workflow
Migrate from mypy to ty for type checking (#252)
Add Python 3.14t (freethreaded) to testing matrix (#251)
prod release (#249)
bump python to latest rc2
fix: switch to release candidate 2 of Python 3.14
5.3.1 / 2025-12-08¶
chore: bump version
fix: bump version
fix: should be all green now
lint: fix ossues with lines
feat: add missing tests
feat: add xPath support
chore(deps): bump starlette from 0.47.2 to 0.49.1 in /docs (#257)
feat: improvements to ruff and new python 3.15 (#255)
Modernize Python code to 3.10+ with pyupgrade (#254)
check arm build ubuntu (#253)
Remove duplicate typecheck job from pythonpackage workflow
Migrate from mypy to ty for type checking (#252)
Add Python 3.14t (freethreaded) to testing matrix (#251)
prod release (#249)
bump python to latest rc2
fix: switch to release candidate 2 of Python 3.14
5.2.0 / 2025-07-21¶
chore: version bump to 5.2.0
chore(deps): bump urllib3 from 2.3.0 to 2.5.0 (#244)
security: Fix Jinja2 and py library vulnerabilities (#243)
Update LICENSE
5.0.5 / 2024-08-31¶
tests (json2xml): add test for encoding
fix missing encoding indication on pretty mode (#213)
chore(deps): bump webob from 1.8.7 to 1.8.8 in /docs (#212)
5.0.4 / 2024-08-08¶
feat: enforce the version requirements in the correct way
5.0.3 / 2024-08-08¶
feat: remove python 3.9, python 3.8 from setup identifier
feat: update 3.13 to beta3 (#208)
chore(deps): bump urllib3 from 1.26.18 to 1.26.19 (#207)
chore(deps): bump certifi from 2023.7.22 to 2024.7.4 in /docs (#206)
chore(deps): bump urllib3 from 1.26.18 to 1.26.19 in /docs (#205)
feat: update to actions to v20 of node
fix: dependabot security issues and a new release version
fix: try beta1 as beta2 fails to untar and extract
fix: lint and deps issue
fix: resolve issues with python 3.13 version and also encoding
fix: CI build failures
fix: update changelog for the docs
fix: update to latest version of urllib3 (#195)
chore(deps): bump urllib3 from 1.26.13 to 1.26.18 (#192)
docs: generate changelog
chore: bump version
feat: get local working for 3.12 and fix some code quality issue
feat: add new python3.12 final (#191)
chore(deps): bump urllib3 from 1.26.7 to 1.26.17 in /docs (#190)
Fix/make docs better (#186)
fix: issue with hardcoded year
fix: remove build files
feat: upgrade sphinx theme
fix: upgrade to latest rc2 package
fix: issues with ruff linting, use isinstance in place of type
fix: make readme better
chore(deps): bump tornado from 6.3.2 to 6.3.3 in /docs (#185)
chore: test python312rc1 (#184)
chore(deps): bump certifi from 2022.12.7 to 2023.7.22 in /docs (#183)
chore(deps): bump pygments from 2.10.0 to 2.15.0 in /docs (#182)
5.0.2 / 2024-06-10¶
fix: try beta1 as beta2 fails to untar and extract
fix: lint and deps issue
fix: resolve issues with python 3.13 version and also encoding
fix: CI build failures
fix: generate changelog
Add Python 3.13 support (#201)
chore(deps): bump jinja2 from 3.0.2 to 3.1.3 in /docs (#197)
fix: bump the version to the latest release number
Merge remote-tracking branch ‘origin/master’
fix: update changelog for the docs
fix: update to latest version of urllib3 (#195)
chore(deps): bump urllib3 from 1.26.13 to 1.26.18 (#192)
docs: generate changelog
chore: bump version
feat: get local working for 3.12 and fix some code quality issue
feat: add new python3.12 final (#191)
chore(deps): bump urllib3 from 1.26.7 to 1.26.17 in /docs (#190)
Fix/make docs better (#186)
fix: issue with hardcoded year
fix: remove build files
feat: upgrade sphinx theme
fix: upgrade to latest rc2 package
fix: issues with ruff linting, use isinstance in place of type
fix: make readme better
chore(deps): bump tornado from 6.3.2 to 6.3.3 in /docs (#185)
chore: test python312rc1 (#184)
chore(deps): bump certifi from 2022.12.7 to 2023.7.22 in /docs (#183)
chore(deps): bump pygments from 2.10.0 to 2.15.0 in /docs (#182)
5.0.0 / 2024-05-11¶
fix: add python3.12
fix: bye bye py 3.9 👋🏻
feat:try python3.13
chore(deps): bump urllib3 from 1.26.13 to 1.26.18 (#192)
feat: get local working for 3.12 and fix some code quality issue
chore(deps): bump certifi from 2022.12.7 to 2023.7.22 in /docs (#183)
chore(deps): bump pygments from 2.10.0 to 2.15.0 in /docs (#182)
4.1.0 / 2023-11-07¶
chore(deps): bump urllib3 from 1.26.13 to 1.26.18 (#192, #195)
4.0.1 / 2023-10-13¶
feat: get local working for 3.12 and fix some code quality issue
Fix/make docs better (#186)
fix: issue with hardcoded year
feat: upgrade sphinx theme
fix: issues with ruff linting, use isinstance in place of type
fix: make readme better
chore(deps): bump tornado from 6.3.2 to 6.3.3 in /docs (#185)
chore(deps): bump certifi from 2022.12.7 to 2023.7.22 in /docs (#183)
chore(deps): bump pygments from 2.10.0 to 2.15.0 in /docs (#182)
4.0.0 / 2023-07-19¶
Updated to Python 3.12 beta 4
Added check for pypy 3.10
Dropped support for Python 3.7
Updated fixture for attrs with dict and removed comment (#170)
3.21.0 / 2023-01-18¶
Implemented list item with attributes (#169)
Added python3.12 alpha4 to the fix (#168)
Replaced requests with urllib3 (#167)
Added security reporting guidelines
Added CodeQL workflow for GitHub code scanning (#160)
Set default to False for list_headers (#164)
Fixed ci issue due to mypy update on python3.11 (#166)
Updated certifi from 2021.10.8 to 2022.12.7 in /docs (#162)
Fixed file opening issue
Celebrated release of Python 3.11 (#159)
3.20.0 / 2022-10-16¶
Made dependencies more flexible (#158)
Used SystemRandom for secure random integer generation (#156)
3.19.5 / 2022-09-18¶
Fixed issues #138 and #151, added 2 new unit tests (#154)
Fixed unit tests for #152 (#153)
3.19.4 / 2022-07-24¶
Transitioned from unittest to pytest (#149)
Upgraded python test to python311beta (#148)
Tested new version of 3.10 and 3.11 (#147)
3.19.3 / 2022-07-01¶
Added UTF-8 encoding type to @readfromjson function in utils.py for Korean language support (#145)
3.19.2 / 2022-06-09¶
Escaped xml char when having attrs (#144)
Adjusted pytest config setting for easier logging
Bumped python 3.10 and 3.11 version (#142)
3.19.1 / 2022-06-05¶
Bumped version of docs building
Updated waitress from 2.1.1 to 2.1.2 in /docs (#141)
Updated docs for dicttoxml (#140)
3.19.0 / 2022-05-20¶
Set xsi location (#135)
Repeated list headers (#138)
Added support for python3.11 (#139)
Improved docs for dicttoxml (#134)
Fixed types working check for ci mypy (#133)
Added mypy support to ci (#132)
Generated changelog
Removed logging by default (#131)
Merged two dev requirements files (#129)
Removed old unused config
Added types (#125)
Fixed issue with twine check
Fixed issue with long description
Refactored: xmltodict is only test dependency now (#124)
Added correct list of contributors
Generated changelog
Improved dicttoxml (#121)
Added correct badge
Started using codecov
Fixed flake8 tests
Added coverage to the mix
Fixed lint issues and CI
Checked new CI stuff like lint and coverage
Bumped version and generated changelog
Fixed issue with wrong output for boolean list
Made pull requests trigger action runs
3.18.0 / 2022-04-23¶
Bumped version
Improved dicttoxml (#121)
Added correct badge
Started using codecov
Fixed flake8 tests
Added coverage to the mix
Fixed lint issues and CI
Checked new CI stuff like lint and coverage
Bumped version and generated changelog
Fixed issue with wrong output for boolean list
Made pull requests trigger action runs
3.17.1 / 2022-04-20¶
Fixed issue with wrong output for boolean list
Made pull requests trigger action runs
3.17.0 / 2022-04-18¶
Fixed return of correct xml type for bool (#119)
Added download counter
Checked latest alpha (#116)
Checked latest alpha (#115)
Updated waitress from 2.0.0 to 2.1.1 in /docs (#114)
Only python3 wheels are created now
3.15.0 / 2022-02-24¶
Merged remote-tracking branch ‘origin/master’
Bumped version and prepared for new release
Added new python versions to test against (#110)
Fixed perflint (#109)
Supported latest version of 3.10 and 3.11 alpha3 (#98)
Generated changelog
Removed unused imports
Bumped version
Fixed issue with uncaught UnicodeDecodeError
Cancelled jobs for concurrent builds in same PR
Stabilized pypi
Updated tox config
v3.14.0 / 2022-02-10¶
Removed unused imports
Bumped version
Fixed issue with uncaught UnicodeDecodeError
fix: remove unused imports
bump version
fix: issue with uncaught UnicodeDecodeError
cancel jobs for concurrent builds in same PR
pypi is stable now
feat: update tox config
v3.11.0 / 2022-01-31¶
bump version
feat: remove comments
Feat: install pytest separately and run pytests now
fix tox
add some documentation on testing
split testing libs away from release
fix: update changelog
bump version to 3.10.0
fix: we support Python3.7+ now (#101)
Issue: #99 dicttoxml igores the root param (#100)
v3.10.0 / 2022-01-29¶
bump version to 3.10.0
fix: we support Python3.7+ now (#101)
Issue: #99 dicttoxml igores the root param (#100)
feat: bump to a rc1 version
Add support for Python3.11 alpha and upgrade pytest and py (#97)
Feat: drop 3.11.0 alphas from the test matrix for now
feat: find the versions that are in the CI
fix: typo in the name of python 3.11 version
sunsetting python 3.6 and add support for python3.11 alpha
chore: prepare for release 3.9.0
fix email
fix readme
update readme - add tests - refactor
resolve #93
chore: run black on readme doc
fix: more issues
fix: garbage in history
feat: generate history
v3.9.0 / 2021-12-19¶
feat: generate history
feat: item_wrap for str and int (#93)
v3.8.4 / 2021-10-24¶
bump version
fix: version bump and readme generator
v3.8.3 / 2021-10-24¶
bump version
feat: reproduce the error in the test (#90)
Feat/version (#88)
Feat/docs theme change (#87)
Feat/docs theme change (#86)
Feat/docs theme change (#85)
Feat/docs theme change (#84)
Feat/docs theme change (#83)
feat: update the docs theme (#82)
v3.8.0 / 2021-10-07¶
Feat/security improvements (#81)
- arrow_up:
feat: python 3.10 released (#79)
v3.7.0 / 2021-09-11¶
- bookmark:
feat: final release for v3.7.0
- bookmark:
feat: bump version
v3.7.0beta2 / 2021-09-10¶
Feat/cleanup and deprecation fix (#78)
item ommision (#76)
Create FUNDING.yml
v3.7.0beta1 / 2021-08-28¶
Feat/fork and update dict2xml (#75)
chore(deps-dev): bump pip from 18.1 to 19.2 (#73)
Delete .travis.yml
chore(deps-dev): bump lxml from 4.6.2 to 4.6.3 (#68)
Bump lxml from 4.1.1 to 4.6.2 (#66)
v3.6.0 / 2020-11-12¶
Feat/wip exceptions (#65)
Add .deepsource.toml
feat: upgrade the actions
feat: try & support more os and python versions
Update pythonpackage.yml
v3.5.0 / 2020-08-24¶
feat: remove six as dependency as we are python3 only, resolves #60 (#61)
feat: update makefile for the correct command
v3.4.1 / 2020-06-10¶
fix: issues with pypi release and bump version
Feat/attr type docs (#58)
fix: conflicts
Feat/attr type docs (#57)
Merge github.com:vinitkumar/json2xml
Update json2xml.py (#56)
Merge github.com:vinitkumar/json2xml
feat: fix typo in the readme
v3.3.3 / 2020-02-05¶
Update README.rst
fix: issue with pypi uploads
fix: version
bump version
Update pythonpackage.yml
Refactor/prospector cleanup (#50)
Update pythonpackage.yml
Create pythonpackage.yml
Update README.rst
fix: typo in readme
bump version
Feature/attribute support (#48)
Feature/attribute support (#47)
chore: bump version
fix: remove print statement in json read because it confuses people
fix typo in readme
v3.0.0 / 2019-02-26¶
Fix/coveralls (#43)
update coverage report (#42)
Merge pull request #41 from vinitkumar/fix/coveralls
add python coveralls
Merge pull request #40 from vinitkumar/refactor/cookiecutter
update coverage
add image for coveralls
coverage and coveralls integrations
try and trigger coveralls too
fix code block in readme
add doc about custom wrapper
try at reducing the dependencies
add tests for custom wrappers as well
add tests for actualy dict2xml conversion
fix: remove missing import
fix: code syntax highlight in the readme again
fix: code syntax highlight in the readme again
fix: code syntax highlight in the readme
chore: update readme with code samples
test: add testcases for the different utils method
remove unused imports
check the third method for generating dict from json string too
run correct test files
fix tests
update requirements and setuptools
refactor the module into more maintainable code
chore: add boilerplate
remove all legacy
Fix/cleanup (#38)
cleanup: remove unused modules (#37)
Merge pull request #35 from vinitkumar/improve-structure
cleanup
one again try to get the build working
travis need full version for latest supported python
do not hardcode version in a series
update grammar
fix conflicts
Update LICENSE
cleanup readme
remove cli
some cleanup and update the tests
Update readme.md
Cleanup Readme.md
Update issue templates
fix vulnerabilities in requests