python-simplejson
Port variant v13
Summary Fast, extensible JSON encoder/decoder (3.13)
Package version 4.1.1
Homepage https://github.com/simplejson/simplejson
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 25 APR 2026, 00:29:47 UTC
Port created 02 FEB 2018, 15:29:04 UTC
Subpackage Descriptions
single simplejson ---------- simplejson is a simple, fast, complete, correct and extensible JSON encoder and decoder for Python 3.8+ with legacy support for Python 2.7. It is pure Python code with no dependencies, but includes an optional C extension for a serious speed boost. The latest documentation for simplejson can be read online here: https://simplejson.readthedocs.io/ simplejson is the externally maintained development version of the json library included with Python (since 2.6). This version is tested with Python 3.14 (including free-threaded builds) and maintains backwards compatibility with Python 3.8+. A legacy Python 2.7 wheel is also published. The encoder can be specialized to provide serialization in any kind of situation, without any special support by the objects to be serialized (somewhat like pickle). This is best done with the default kwarg to dumps. The decoder can handle incoming JSON strings of any specified encoding (UTF-8 by default). It can also be specialized to post-process JSON objects with the object_hook or object_pairs_hook kwargs. This is particularly useful for implementing protocols such as JSON-RPC that have a richer type system than JSON itself. For those of you that have legacy systems to maintain, there is a very old fork of simplejson in the `python2.2`_ branch that supports Python 2.2. This is based on a very old version of simplejson, is not maintained, and should only be used as a last resort. .. _python2.2: https://github.com/simplejson/simplejson/tree/python2.2 RawJSON ~~~~~~~ RawJSON allows embedding pre-encoded JSON strings into output without re-encoding them. This can be useful in advanced cases where JSON content is already serialized and re-encoding would be unnecessary. Example usage:: from simplejson import dumps, RawJSON payload = { "status": "ok", "data": RawJSON('{"a": 1, "b": 2}') } print(dumps(payload)) # Output: {"status": "ok", "data": {"a": 1, "b": 2}} **Caveat:** RawJSON should be used with care. It bypasses normal serialization and validation, and is not recommended for general use unless the embedded JSON content is fully trusted.
Configuration Switches (platform-specific settings discarded)
PY313 ON Build using Python 3.13 PY314 OFF Build using Python 3.14
Package Dependencies by Type
Build (only) python313:dev:std
python-pip:single:v13
autoselect-python:single:std
Build and Runtime python313:primary:std
Download groups
main mirror://PYPIWHL/ce/6a/8b74c52ffd33dbbde00fe7251fee6a0acdc8cea33f7a43805aed258fb79b
Distribution File Information
2ce92b3748f02423e26d2bfb636fb9d7a8f67c8f5854dcae69d350d123b2eee2 69195 python-src/simplejson-4.1.1-py3-none-any.whl
Ports that require python-simplejson:v13
No other ports depend on this one.