$npx skillfedfor your agent

json-encoder

json encoder uses singledispatch pattern instead of JSONEncoder class overwrites

SkipPyPI UtilitiesReleased Sep 201682.6K downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — json_encoder-0.4.4-py2.py3-none-any.whl
v0.4.4 · released 2016-09-16 · 2 runtime deps: six, singledispatch

No. The package is abandoned (last release 2016-09-16) with no maintenance signal, an unclear license, and compatibility only documented through Python 3.5. Modern Python versions and current JSON libraries may not work with it. For new projects, use a maintained alternative or the standard library's JSONEncoder with custom handlers. For legacy codebases already using it, consider migrating.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • singledispatch is a runtime dependency; for Python < 3.4, singledispatch >= 3.4.0.3 must be installed separately.
  • Low install friction with only two runtime dependencies (six and singledispatch).
  • However, the package is abandoned—last release was 2016-09-16, with no maintenance activity since.

License · maintenance · safety

(unclear) — License status is unclear; no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms before use in proprietary or copyleft-sensitive projects.

last release 2016-09-16 (3619 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 82,638 downloads/mo, #14,149 on PyPI

Verify before relying

from json_encoder import json
result = json.dumps(data)

# Register custom type handler:
from json_encoder.encoder import json_encoder
@json_encoder.register(MyType)
def encode_mytype(obj):
    return str(obj)
  • Whether the package is compatible with modern Python versions beyond 3.5 (last tested version in classifiers).
  • Current state of the repository and whether it has been archived or deleted.
  • Whether the unclear license is permissive or restrictive, and what the actual license text is.
Same gist for agents: .md · .json

What it is and what it does

json-encoder is a JSON serialization library that uses Python's singledispatch pattern to register type-specific serializers instead of requiring JSONEncoder subclassing. It eliminates the need to pass a custom encoder class to every json.dumps() call and provides built-in handlers for common types like datetime, UUID, and Decimal. The package is not tied to a specific JSON implementation—it can work with the standard library json module, simplejson, ujson, or others.

The library also converts JSON float numbers to Decimal objects during parsing to avoid floating-point precision issues. Developers can register custom serializers for their own types using a simple decorator pattern. However, the package has been abandoned since 2016-09-16 and receives no maintenance, making it a legacy tool that may not work reliably with current Python versions or modern JSON libraries.

Use it for

  • Serialize datetime, date, time, UUID, and Decimal objects to JSON without writing custom encoder classes.
  • Register custom serializers for domain-specific types using a decorator pattern instead of subclassing JSONEncoder.
  • Switch between json, simplejson, or ujson implementations globally or per-call without changing serialization logic.
  • Prevent floating-point precision loss by parsing JSON numbers as Decimal objects.
  • Avoid repeating cls=MyEncoder in every json.dumps() call across a codebase.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No.

The package is abandoned (last release 2016-09-16) with no maintenance signal, an unclear license, and compatibility only documented through Python 3.5. Modern Python versions and current JSON libraries may not work with it. For new projects, use a maintained alternative or the standard library's JSONEncoder with custom handlers. For legacy codebases already using it, consider migrating.

Install

json-encoder on PyPI

Before you install

Low install friction with only two runtime dependencies (six and singledispatch). However, the package is abandoned—last release was 2016-09-16, with no maintenance activity since.

singledispatch is a runtime dependency; for Python < 3.4, singledispatch >= 3.4.0.3 must be installed separately.

License in practice

License status is unclear; no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms before use in proprietary or copyleft-sensitive projects.

Quickstart

from json_encoder import json
result = json.dumps(data)

# Register custom type handler:
from json_encoder.encoder import json_encoder
@json_encoder.register(MyType)
def encode_mytype(obj):
    return str(obj)

Verify before relying

  • Whether the package is compatible with modern Python versions beyond 3.5 (last tested version in classifiers).
  • Current state of the repository and whether it has been archived or deleted.
  • Whether the unclear license is permissive or restrictive, and what the actual license text is.

Package facts

LicenseNot declared unclear
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
sixsingledispatch
MaintenanceAbandoned 3,619 days since the last release
First released
Downloads82,638 / month, #14,149 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaEnvironment :: Web EnvironmentIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.5

Evidence: json_encoder-0.4.4-py2.py3-none-any.whl

Tags

Capabilities
json serialization with singledispatchcustom json encoder without subclassingjson datetime uuid decimal serializationpluggable json type handlersjson encoder alternative to cls parameter
Topics
json-serializationabandoned

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “json serialization with singledispatch”

  • json-encoderProvides JSON serialization with singledispatch-based type handlers…
  • singledispatchProvides single-dispatch generic functions—a decorator-based…
  • methoddispatchAdds single-dispatch method support to Python classes, allowing…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also dynamodb-json · standardjson · simplejson · jsonconversion · ujson · numpyencoder · canonicaljson · json-fix · json-tricks · methoddispatch