# json > JSON processing and handling best practices using jq. Use when working with JSON data, parsing JSON files, generating JSON output, or processing JSON from APIs. - Author: Ben Drucker - Repository: bendrucker/claude - Version: 20260120152352 - Stars: 6 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/bendrucker/claude - Web: https://mule.run/skillshub/@@bendrucker/claude~json:20260120152352 --- --- name: json description: JSON processing and handling best practices using jq. Use when working with JSON data, parsing JSON files, generating JSON output, or processing JSON from APIs. user-invocable: false --- # JSON - ALWAYS use `jq` for producing JSON output to ensure validity. - Use `jq` to parse JSON input. If you know the structure, use `jq` filters to extract specific fields. JSON is often token-heavy, so optimizing for size is important. - Use `jq` filters like `keys`, `type`, and length to inspect JSON structures. - When fetching from the internet, output JSON to temporary files in `tmp/` directory to allow for inspection.