{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/3"}],"enrichment":{"capability":"Converts nested JSON objects into flat key-value dictionaries and reverses the process, useful for preparing hierarchical data for tabular formats.","skillfed_tags":["json-processing","data-transformation"],"use_cases":["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)"],"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\u2014for 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.","worth_installing":"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."},"id":"flatten-json","links":{"html":"https://skillfed.io/packages/flatten-json","md":"https://skillfed.io/packages/flatten-json.md","pypi":"https://pypi.org/project/flatten-json/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-10-27","license_spdx":null,"license_treatment":"permissive","name":"flatten-json","python_support":"unspecified","summary":"Flatten JSON objects"},"popularity":{"monthly_downloads":2760293,"position":2900,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.1.14"}
