$npx skillfedfor your agent

flatten-json

Flatten JSON objects

With conditionsPyPI UtilitiesReleased Oct 20232.8M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — flatten_json-0.1.14-py3-none-any.whl
v0.1.14 · released 2023-10-27 · 1 runtime deps: six

Yes, if you regularly work with nested JSON and need to convert it to tabular formats. The package is stable, has no known vulnerabilities, and low install friction. However, maintenance is dormant (no updates since 2023-11-01); if you need active support or encounter edge cases, consider whether a maintained alternative is necessary. For straightforward flatten/unflatten tasks, this is a solid choice.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction; depends only on six.
  • Dormant maintenance status (last commit 2023-11-01, 1022 days since release) means no active development, but the package is stable.

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.

last release 2023-10-27 (1022 days) · last repo commit 2023-11-01 · 555 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,760,293 downloads/mo, #2,900 on PyPI

Verify before relying

from flatten_json import flatten

dic = {"a": 1, "b": {"c": 2}}
flattened = flatten(dic)
# Result: {'a': 1, 'b_c': 2}
  • Whether the package handles edge cases in deeply nested structures or circular references gracefully
  • Performance characteristics on very large or complex JSON objects
  • Compatibility with modern Python versions beyond what the fact sheet specifies
Same gist for agents: .md · .json

What it is and what it does

flatten_json is a lightweight utility that converts nested JSON objects into single-level dictionaries by joining keys with a separator (default underscore), and can reverse the process. It's particularly useful when you need to convert hierarchical data into tabular form—for example, preparing nested API responses for export or working with tabular data structures. The package provides three main functions: flatten() to collapse nested structures, unflatten() to reconstruct them, and unflatten_list() to handle cases where integer-indexed keys should become lists. It supports customizable separators and can selectively ignore root keys to skip unnecessary processing on large objects.

Use it for

  • Convert nested API JSON responses into flat dictionaries for export or database import
  • Prepare hierarchical JSON data for tabular data structures with automatic column flattening
  • Reverse-flatten previously flattened data back to its original nested structure
  • Filter out unwanted nested branches during flattening using root_keys_to_ignore parameter
  • Command-line JSON transformation via pipe (echo '{"a": {"b": 1}}' | flatten_json)

Worth the install?

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

With conditions

Yes, if you regularly work with nested JSON and need to convert it to tabular formats.

The package is stable, has no known vulnerabilities, and low install friction. However, maintenance is dormant (no updates since 2023-11-01); if you need active support or encounter edge cases, consider whether a maintained alternative is necessary. For straightforward flatten/unflatten tasks, this is a solid choice.

Install

flatten-json on PyPI

Before you install

Low friction; depends only on six. Dormant maintenance status (last commit 2023-11-01, 1022 days since release) means no active development, but the package is stable.

License in practice

MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.

Quickstart

from flatten_json import flatten

dic = {"a": 1, "b": {"c": 2}}
flattened = flatten(dic)
# Result: {'a': 1, 'b_c': 2}

Verify before relying

  • Whether the package handles edge cases in deeply nested structures or circular references gracefully
  • Performance characteristics on very large or complex JSON objects
  • Compatibility with modern Python versions beyond what the fact sheet specifies

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
six
MaintenanceDormant 1,022 days since the last release
Last repo commit
First released
Downloads2,760,293 / month, #2,900 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: flatten_json-0.1.14-py3-none-any.whl

Tags

Capabilities
flatten nested jsonjson to flat dictionaryunflatten jsonjson hierarchy to tablenested object flatteningjson denormalizationconvert json to dataframe
Topics
json-processingdata-transformation
PyPI keywords
jsonflattenpandas

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 › “unflatten json”

  • flatten-jsonConverts nested JSON objects into flat key-value dictionaries and…
  • json-flattenConverts nested JSON objects into flat key-value dictionaries and…
  • json-tools-rsFlattens and unflattens nested JSON structures with SIMD-accelerated…

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 flatdict · flatten-dict · json-flatten · json-flattener · json-tools-rs · deflate-dict · json-normalize · json-source-map · pandas-read-xml · condense-json