4Internet / developer utilities

JSON Transformation Lab

Filter, reshape and aggregate JSON with a jq expression.

Account access needed

This tool requires an eligible account. Check your plan and sign-in status.

A practical guide

How to use JSON Transformation Lab

Use jq to select fields, filter records and calculate summaries when formatting alone is not enough. JSON input and the filter are separate fields. The result is the actual jq output from the version shown in the report.

  1. Paste valid JSON into Source. Start with the dot filter to return the original value.
  2. Enter a filter such as .requests | map(select(.status >= 400)) to keep only failed requests. Choose Analyze.
  3. Inspect output types and record counts before copying the result. A filter can return several JSON values rather than one enclosing array.

Worked example

Illustrative input and expected interpretation. This example is not a live measurement.

Input

{"requests":[{"status":200},{"status":503}]} with .requests | map(select(.status >= 400))

What to expect

[{"status":503}]

What to watch for

  • jq filters are expressions, not shell commands. Do not add shell quoting around the whole filter or paste a jq command line.
  • Input files, home-directory modules and network connections are unavailable. The filter and supplied JSON are the only job inputs.
  • Limit: 64 KiB JSON, 4 KiB filter, three CPU seconds and 1 MiB output. Infinite or expanding expressions fail at resource limits.

Your input: submitted to this server for processing. This tool does not send it to an AI provider. Your input is processed for this request. Temporary processing files are removed afterward. Avoid pasting secrets or personal data.

References