Retour aux skills
expanso-json-flatten
par aronchick
CLI Utilities—Pas encore noté
Ta note
Résumé
Flatten nested JSON objects.
Description
Ce que fait ce skill
Flattens nested JSON objects into a single-level key-value structure. Runs as a CLI pipeline, an MCP server, or deploys to Expanso Cloud. Input is piped through the Expanso Edge runtime.
Avoids writing custom recursive flattening logic for arbitrarily nested JSON structures.
Quand l'utiliser
- Normalizing nested API responses before loading into a database
- Flattening config files to compare values across environments
- Preprocessing webhook payloads for spreadsheet export
- Simplifying nested log entries for log aggregation tools
- Converting deeply nested objects into flat CSV rows
Exemple de workflow
ENTRÉE
User asks: flatten this nested JSON object
AGENT
- 1
Receives nested JSON as stdin
- 2
Pipes input to the expanso-edge runtime
- 3
Executes pipeline-cli.yaml to process the flattening
- 4
Returns a flat single-level JSON object
SORTIE
A flat JSON object with dot-notation or underscore-separated keys representing the original hierarchy
Prérequis
- Expanso Edge binary installed in PATH (install via `clawhub install expanso-edge`)
Installation
clawhub install aronchick/expanso-json-flattenExécute la commande CLI, ou colle l'instruction dans Claude Code, Cursor, Codex ou l'agent de code que tu utilises.