跳到主要内容
open-toolsopen-tools

JSON 格式化

用正确缩进格式化并美化 JSON

通过 API 使用

API · 同样任务,在你的机器上

# Upload JSON file and create job
curl -X POST https://api.open-tools.app/api/upload \
  -F "file=@input.json" \
  -F "job_type=json-formatter"

# Response: {"job_id": "abc-123", "status": "queued"}

# Connect to WebSocket for status updates
# wss://ws.open-tools.app/ws/{job_id}

# Download result when completed
curl -X GET https://api.open-tools.app/api/download/{file_id}