JSON All-in-OneJSON All-in-One
Site navigation
English

JSONPath / value selection

Extract affected services from high-severity incidents

Start with an incident payload, run one JSONPath selector, and confirm the matched service names before using the selector on your own data.

Reproducible trace

Return service names for incidents where severity is high.

Input / agents/incidents.json
{
  "incidents": [
    {"id": "inc-1", "severity": "high", "service": "api"},
    {"id": "inc-2", "severity": "low", "service": "docs"},
    {"id": "inc-3", "severity": "high", "service": "payments"}
  ]
}
Operation / JSONPath
$.incidents[?(@.severity == "high")].service
Expected output / high-severity-services.expected.json
[
  "api",
  "payments"
]

How to use this workflow

  1. Download or copy the input. The fixture is synthetic and designed for this exact operation.
  2. Run the operation. Use the linked JSON All-in-One tool, or reproduce the operation in your own environment when the syntax matches.
  3. Compare the expected output. The expected result is the acceptance target for this fixture, not a general product guarantee.

Notes and limits

  • The operation is written for the site JSONPath evaluator and a small synthetic object.
  • Review paths and values separately if your downstream agent needs source locations.

For broader examples, return to the JSON task workflows hub or browse all JSON tools.