$npx skillfedfor your agent

jsonpickle

jsonpickle encodes/decodes any Python object to/from JSON

With conditionsPyPI UtilitiesReleased May 202620.9M downloads / moBSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — jsonpickle-4.1.2-py3-none-any.whl
v4.1.2 · released 2026-05-28 · Python >=3.8

Yes, if you need to serialize complex Python objects to JSON and control the data source. The library is stable, actively maintained, has no external dependencies, and solves a real gap between pickle and standard JSON. However, treat deserialization of untrusted data as a security risk equivalent to pickle—only deserialize data you control or have verified. For untrusted input, read JSON directly without object reconstruction.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Only deserialize data from trusted sources; jsonpickle can execute arbitrary Python code during unpickling, just like the stdlib pickle module.
  • Installation is straightforward with no runtime dependencies beyond Python stdlib.
  • The package is actively maintained with a recent release 78 days ago and has 1318 repository stars, indicating stable ongoing support.

License · maintenance · safety

BSD-3-Clause (permissive) — Licensed under BSD-3-Clause (permissive), allowing commercial and private use with minimal restrictions—you must include the license notice but face no copyleft obligations.

last release 2026-05-28 (78 days) · last repo commit 2026-08-06 · 1,318 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 20,874,719 downloads/mo, #1,025 on PyPI

Verify before relying

pip install jsonpickle

import jsonpickle
from dataclasses import dataclass

@dataclass
class Example:
    data: str

ex = Example("value1")
encoded_instance = jsonpickle.encode(ex)
decoded_instance = jsonpickle.decode(encoded_instance)
  • Whether the numpy and pandas extensions require those libraries to be installed separately or are optional at runtime
  • Performance characteristics when serializing very large or deeply nested object graphs
  • Compatibility guarantees with third-party pickle protocols or custom __getstate__/__setstate__ implementations
Same gist for agents: .md · .json

What it is and what it does

jsonpickle is a serialization library that converts Python objects into JSON format and back again. Unlike Python's built-in pickle module, which produces binary output readable only by Python, jsonpickle generates human-readable JSON that can be indexed and processed by non-Python tools. It handles both simple types and complex structures like numpy arrays and pandas DataFrames through optional registered handlers.

The library sits between pickle's power and JSON's portability: it preserves Python object types and state in a text format suitable for storage, transmission, and cross-platform inspection. However, it carries the same security model as pickle—deserialization can execute arbitrary code, so it should only be used with trusted data sources.

Use it for

  • Serialize machine learning models and numpy arrays to JSON for storage in cloud systems where they can be indexed by query tools.
  • Export pandas DataFrames to a human-readable JSON format that remains machine-processable across different platforms and languages.
  • Convert complex Python objects to JSON for REST API responses or inter-service communication while preserving type information.
  • Store application state or configuration objects as JSON files that can be inspected and debugged without running Python code.
  • Migrate data from pickle-based systems to JSON for better tooling support and auditability in data pipelines.

Worth the install?

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

With conditions

Yes, if you need to serialize complex Python objects to JSON and control the data source.

The library is stable, actively maintained, has no external dependencies, and solves a real gap between pickle and standard JSON. However, treat deserialization of untrusted data as a security risk equivalent to pickle—only deserialize data you control or have verified. For untrusted input, read JSON directly without object reconstruction.

Install

jsonpickle on PyPI

Before you install

Installation is straightforward with no runtime dependencies beyond Python stdlib. The package is actively maintained with a recent release 78 days ago and has 1318 repository stars, indicating stable ongoing support.

Only deserialize data from trusted sources; jsonpickle can execute arbitrary Python code during unpickling, just like the stdlib pickle module.

License in practice

Licensed under BSD-3-Clause (permissive), allowing commercial and private use with minimal restrictions—you must include the license notice but face no copyleft obligations.

Quickstart

pip install jsonpickle

import jsonpickle
from dataclasses import dataclass

@dataclass
class Example:
    data: str

ex = Example("value1")
encoded_instance = jsonpickle.encode(ex)
decoded_instance = jsonpickle.decode(encoded_instance)

Verify before relying

  • Whether the numpy and pandas extensions require those libraries to be installed separately or are optional at runtime
  • Performance characteristics when serializing very large or deeply nested object graphs
  • Compatibility guarantees with third-party pickle protocols or custom __getstate__/__setstate__ implementations

Package facts

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 78 days since the last release
Last repo commit
First released
Downloads20,874,719 / month, #1,025 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: Only

Evidence: jsonpickle-4.1.2-py3-none-any.whl

Tags

Capabilities
python object to json serializationserialize complex python objectsjson encoding decoding pythonpickle alternative json formatnumpy pandas json serializationhuman readable python serializationcross platform object serialization
Topics
serializationjsondata-interchange

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 › “serialize complex python objects”

  • jsonpicklejsonpickle converts complex Python objects to and from JSON, enabling…
  • jsonconversionConverts arbitrary Python objects to JSON strings and back, extending…
  • marshmallowMarshmallow converts complex Python objects to and from native Python…

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 cloudpickle · javaobj-py3 · dill · pypickle · telepath · json-numpy · msgpack-numpy · numpyencoder · django-picklefield · jupyter-mimetypes