The JSON format gives you structured data for automation, dashboards, and CI/CD integration.

Generating JSON

Or pipe to stdout:

Schema overview

The JSON output has three top-level keys:

stats

runs

Each entry in the runs array represents one evaluated prompt:

mlcommons_alignment

Maps ai-blackteam harm categories to MLCommons AILuminate hazard codes and names.

Using JSON in automation

Extract bypass count

Get all bypassed attacks

CI fail condition

Feed into a dashboard

The JSON schema is stable across ai-blackteam versions. Parse it with any language or tool - Python, Node, jq, Datadog, Grafana, whatever your stack uses.