跳到正文
TakoAPI
返回技能列表

expanso-json-flatten

由 aronchick 提供

CLI Utilities
585下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Flatten nested JSON objects.

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

User asks: flatten this nested JSON object

智能体
  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

输出

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

前置要求

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

安装

clawhub install aronchick/expanso-json-flatten

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接