HomeDeveloper toolsJSON Array Query Builder

JSON Array Query Builder

Filter, sort and project a JSON array using explicit fields and operators.

Processing stays in your browser. Top-level record fields only. A bounded declarative query; no jq syntax, JavaScript or arbitrary expressions.

How to use the json array query builder

Review the example input and the labeled settings for json array query builder. Paste your own data or use the optional UTF-8 upload where shown. Choose Run tool, inspect the result and any visual preview, then copy or download it. Changing an input clears the previous result.

Example

Filtering score >= 5 returns only record B.

Good to know

Top-level record fields only. A bounded declarative query; no jq syntax, JavaScript or arbitrary expressions.

Work with structured data without losing meaning

Keep a copy of the original document before formatting or converting it. Identify whether the input is one object, an array, or a stream of separate records: these are different structures. JSON uses double quotes for strings and property names, and does not support comments, trailing commas or undefined values. A document that parses successfully can still contain the wrong fields or values for your application.

Inputs and settings explained

JSON input
Supply the JSON shape named by this label. Preserve property names and value types in the example, then replace the demonstration data. Objects, arrays and newline-delimited records are different formats; use the one requested rather than enclosing arbitrary text in braces.
See the demonstration value
[
  {
    "name": "A",
    "score": 4
  },
  {
    "name": "B",
    "score": 8
  }
]
Filter key
Enter the filter key exactly as required by the example. Check spelling, whitespace and any stated naming rules before running the operation. Use a small test value first; an accepted text field does not by itself establish that the value is appropriate for the system that will consume the result.
See the demonstration value
score
Operator
Choose the operator setting that matches your task. Available choices: >=; >; =; !=; <; <=; contains. The supplied example selects >=. Compare the result after changing this setting; the options describe different operations or conventions.
Comparison value (JSON or text)
Supply the JSON shape named by this label. Preserve property names and value types in the example, then replace the demonstration data. Objects, arrays and newline-delimited records are different formats; use the one requested rather than enclosing arbitrary text in braces.
See the demonstration value
5
Sort key (blank disables)
Enter the sort key (blank disables) exactly as required by the example. Check spelling, whitespace and any stated naming rules before running the operation. Use a small test value first; an accepted text field does not by itself establish that the value is appropriate for the system that will consume the result.
See the demonstration value
score
Projection keys, comma separated
Enter the projection keys, comma separated exactly as required by the example. Check spelling, whitespace and any stated naming rules before running the operation. Use a small test value first; an accepted text field does not by itself establish that the value is appropriate for the system that will consume the result.
See the demonstration value
name,score

How to review the result

Compare structure as well as appearance. Check whether numbers stayed numbers, null stayed distinct from an empty string, and arrays retained their order. Very large integers require particular care when a JavaScript number parser is involved; use the representation your receiving system expects. Formatting changes whitespace, whereas conversion between formats can change the available data types. Test the result with the actual consumer before replacing a working configuration or API fixture.

  • Compare a nested object, an empty array and a non-ASCII string with the original.
  • Look for repeated keys, missing required properties and unintended type changes.
  • Validate against your application's schema separately when one is available.

Common questions about this workflow

Does valid JSON mean my API request is correct?

No. Parsing checks the JSON syntax. Your API can still reject an unsupported property, an incorrect type, missing authorization or a value outside its allowed range. Compare the output with the endpoint's documented contract.

What should I do when the input fails?

Start with the smallest failing object. Check the reported location and the preceding line for a missing comma, unmatched quote or bracket. Fix the source rather than deleting data merely to make the parser accept it.

Built by DevBricks Technologies. Found an unexpected result in JSON Array Query Builder? Report a reproducible example with the tool URL, settings and a small sample that contains no private information.