{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/4"}],"enrichment":{"capability":"Formats JSON into compact, human-readable output by fitting objects and arrays onto single lines when they fit within configured length and complexity limits, falling back to multi-line formatting for larger structures.","skillfed_tags":["json-formatting","cli-tool"],"use_cases":["Format API responses or configuration files to a compact but readable form for logging or debugging without the verbosity of standard pretty-printing.","Reduce JSON file size while keeping the output human-readable for version control or data interchange.","Configure formatting rules (line length, nesting depth, indentation) to match your project's style guide or readability preferences.","Use the command-line tool in shell pipelines to format JSON from stdin or batch-process multiple JSON files with consistent settings."],"what_it_does":"compact-json is a JSON formatter that balances readability with compactness by applying three formatting strategies: fitting simple objects and arrays onto a single line when they are short and not deeply nested, arranging complex lists across multiple lines with several items per line, or expanding each property or array item onto its own indented line. It exposes a Formatter class with configurable properties like max_inline_length, max_inline_complexity, and indent_spaces, allowing you to tune the output to your needs. It also provides a command-line utility for formatting JSON files directly from the shell.\n\nThe package is now deprecated and its maintainers explicitly recommend migrating to fractured-json, which tracks the upstream FracturedJson .NET project. Despite the deprecation notice, compact-json remains functional and receives occasional maintenance; it supports Python 3.9 through 3.14 and has no known security vulnerabilities. The three runtime dependencies are lightweight and widely available.","worth_installing":"Yes, if you need compact JSON formatting and can accept the aging maintenance status. The package is stable, has no known vulnerabilities, and works with current Python versions. However, the explicit deprecation notice and recommendation to migrate to fractured-json suggest this is a good time to evaluate whether that alternative better suits your long-term needs. Install only if you are comfortable with a package that receives infrequent updates."},"id":"compact-json","links":{"html":"https://skillfed.io/packages/compact-json","md":"https://skillfed.io/packages/compact-json.md","pypi":"https://pypi.org/project/compact-json/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-12-26","license_spdx":null,"license_treatment":"permissive","name":"compact-json","python_support":"supports_current","summary":"A JSON formatter that produces compact but human-readable"},"popularity":{"monthly_downloads":1069547,"position":4407,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.8.2"}
