{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/5"}],"enrichment":{"capability":"Converts nested JSON objects into flat key-value dictionaries and back, preserving types using suffix notation, useful for HTML forms or query string parameters.","skillfed_tags":["json-serialization","data-transformation"],"use_cases":["Serialize nested JSON to HTML form fields while preserving type information for round-trip conversion.","Encode complex JSON structures as URL query string parameters for API requests.","Flatten configuration objects for storage in flat key-value databases or environment variables.","Convert JSON payloads to flat dictionaries for compatibility with legacy systems expecting single-level data.","Debug and inspect deeply nested JSON by viewing all paths and values in a single flat view."],"what_it_does":"json-flatten provides two core functions: flatten() converts a nested JSON dictionary into a single-level dictionary with dot-notation keys and type suffixes (e.g., `user.age$int`), and unflatten() reverses the process. It preserves type information for integers, floats, booleans, nulls, and empty containers through suffix markers, and represents list indices using bracket notation like `items.[0]`.\n\nThe package is designed for scenarios where you need to represent JSON as HTML form data or URL query parameters\u2014contexts where nested structures don't map naturally. It handles arbitrarily nested objects and lists, including matrices and mixed nesting patterns, all without external dependencies.","worth_installing":"Yes, if you need JSON flattening with type preservation and have no special Python version requirements. The zero-dependency design and low install friction make it straightforward to add. However, the aging maintenance status (706 days since last release) means you should verify it handles your specific JSON structures before relying on it in production; consider forking or monitoring the repository if you need ongoing support."},"id":"json-flatten","links":{"html":"https://skillfed.io/packages/json-flatten","md":"https://skillfed.io/packages/json-flatten.md","pypi":"https://pypi.org/project/json-flatten/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2024-09-07","license_spdx":null,"license_treatment":"permissive","name":"json-flatten","python_support":"unspecified","summary":"Python functions for flattening a JSON object to a single dictionary of pairs, and unflattening that dictionary back to a JSON object"},"popularity":{"monthly_downloads":538007,"position":6117,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.1"}
