Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

expanso-json-flatten

bởi aronchick

CLI Utilities
585Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Flatten nested JSON objects.

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

User asks: flatten this nested JSON object

AGENT
  1. 1

    Receives nested JSON as stdin

  2. 2

    Pipes input to the expanso-edge runtime

  3. 3

    Executes pipeline-cli.yaml to process the flattening

  4. 4

    Returns a flat single-level JSON object

ĐẦU RA

A flat JSON object with dot-notation or underscore-separated keys representing the original hierarchy

Yêu cầu

  • Expanso Edge binary installed in PATH (install via `clawhub install expanso-edge`)

Cài đặt

clawhub install aronchick/expanso-json-flatten

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết