{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/3"}],"enrichment":{"capability":"Parses JSON-like data from files containing syntax violations\u2014single quotes, comments, unquoted keys, dangling commas, and hex/octal numbers\u2014while tracking line and column positions for each element.","skillfed_tags":["json-parsing","position-tracking","lenient-parsing"],"use_cases":["Extract configuration objects from JavaScript files that use unquoted keys or trailing commas.","Parse JSON responses from APIs or data files that include comments or non-standard syntax.","Build a linter or code analyzer that needs to report errors with precise line and column references.","Read JSON-like data embedded in source code where strict compliance is impractical.","Migrate legacy systems that generate or consume non-standard JSON variants."],"what_it_does":"dirtyjson is a JSON decoder that reads JSON-like data from files violating the official JSON standard. It accepts single quotes, line and inline comments, dangling commas, unquoted single-word keys, and hexadecimal/octal number literals. The parser returns Python objects wrapped in AttributedDict and AttributedList subclasses that preserve line and column position metadata for every element, allowing you to map results back to source locations.\n\nThe package is designed for extracting structured data from JavaScript files or other sources where strict JSON compliance is not guaranteed. It exposes a familiar API similar to the standard library's json module, offering load() and loads() functions but no write capability. Position tracking makes it useful for building error messages or source-aware parsers that need to report exactly where in the original file a problem occurred.","worth_installing":"Yes, if you need to parse non-standard JSON and can tolerate abandoned maintenance. The package is stable, has no dependencies, and works reliably for its core purpose. However, do not install if you require active bug fixes, security updates, or support for future Python versions\u2014the last commit was 2022-11-28 and the project shows no signs of revival. For new projects, consider whether standard JSON with preprocessing might be more maintainable."},"id":"dirtyjson","links":{"html":"https://skillfed.io/packages/dirtyjson","md":"https://skillfed.io/packages/dirtyjson.md","pypi":"https://pypi.org/project/dirtyjson/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2022-11-28","license_spdx":null,"license_treatment":"permissive","name":"dirtyjson","python_support":"unspecified","summary":"JSON decoder for Python that can extract data from the muck"},"popularity":{"monthly_downloads":11617464,"position":1379,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.0.8"}
