Originally published at Unattended. To get JSON from Claude Code, run claude -p "your prompt" --output-format json. When the run finishes, it prints one JSON object with the answer in result and run metadata next to it: type, subtype, is_error, duration_ms, num_turns, session_id, total_cost_usd and usage. The official docs call this format... Weiterlesen: Claude Code Output Format JSON: Fields, jq & Python Parsing
Intelligence View
⚡ tsecurity.de Intelligence
Claude Code Output Format JSON: Fields, jq & Python Parsing
Originally published at Unattended. To get JSON from Claude Code, run claude -p "your prompt" --output-format json. When the run finishes, it prints one JSON…
Intelligence Digest — free The top security news daily · unsubscribe anytime