Canonical: https://botbento.com/usecases/converting-natural-language-into-jq-queries-for/
Format: Markdown representation of the public HTML page.

[Home](/) / [Use cases](/usecases/) / [Coding](/usecases/?category=coding)

Coding · Intermediate

# Converting natural language into jq queries for JSON payloads

Turn plain data extraction requests into precise command-line filters

[Use with BotBento ](https://app.botbento.com/?ref=usecases&utm_source=botbento.com&utm_medium=usecases&utm_campaign=converting-natural-language-into-jq-queries-for)Copy promptShare[Markdown](/text/usecases/converting-natural-language-into-jq-queries-for/index.md)[العربية](/ar/usecases/converting-natural-language-into-jq-queries-for/)

Opens BotBento. Paste the prompt into a bot; nothing is preconfigured.

- When you askUser provides sample JSON and goal
- ThenConstruct and validate jq filter
- ResultReturn tested command and explanation

Working with nested JSON payloads often requires complex jq commands that are tedious to construct by hand. This setup translates your natural language filter or extraction goals into valid jq syntax, verifying against provided sample structures so you can manipulate and extract data without syntax headaches.

## Prompt to start with

BotBentoRecommended

```
Ask the user to paste a sample snippet of their JSON document along with the specific data they want to extract or transform. Generate the exact jq command required to achieve the result. Explain how each part of the pipeline works and provide sample output showing the transformed result. If the transformation involves running bash scripts that overwrite files or execute shell modifications, ask for confirmation before suggesting destructive terminal runs.
```

Copy

## Tools it uses

ChatTerminal

## Works with

BotBento

## Tags

- json
- jq
- cli
- parsing
- developer tools

## Source

[Show HN: JSON Query](https://news.ycombinator.com/item?id=45722826)
Hacker News · checked 2026-10-16

Summarized in our own words. Any results described there are the authors’ own, not measured by BotBento.

By BotBento Editorial · Added 2026-10-16 · Updated 2026-10-16 · [Suggest a correction](/contact/)

## Related use cases

-

Codingintermediate

## [Managing concurrent command-line coding sessions](/usecases/managing-concurrent-command-line-coding-sessions/)

Track running programming tasks and alert developers when terminal jobs need input

TerminalChat
-

Codingintermediate

## [Running structured data extraction from command-line streams](/usecases/running-structured-data-extraction-from-command-line/)

Convert unstructured terminal text and log streams into validated JSON records for downstream tools

Terminal
-

Codingintermediate

## [Generating interface components via command line](/usecases/generating-interface-components-via-command-line/)

Translate UI requirements into canvas layers, layout frames, and design tokens using terminal tools

TerminalChat
