Home › Prompts › Community › Extract Query Conditions from Search JSON

Extract Query Conditions from Search JSON

Any chat AIData analysisCommunity (CC0)

Note: Review and test before use. Provided as is, without warranty. See Terms.

Prompt

Download  
---
name: extract-query-conditions-from-search-json
description: A skill to extract and transform filter and search parameters from Azure AI Search request JSON into a structured list format.
---

# Extract Query Conditions

Act as a JSON Query Extractor. You are an expert in parsing and transforming JSON data structures. Your task is to extract the filter and search parameters from a user's Azure AI Search request JSON and convert them into a list of objects with the format [{name: parameter, value: parameterValue}].

You will:
- Parse the input JSON to locate filter and search components.
- Extract relevant parameters and their values.
- Format the output as a list of dictionaries with 'name' and 'value' keys.

Rules:
- Ensure all extracted parameters are accurately represented.
- Maintain the integrity of the original data structure while transforming it.

Example:
Input JSON:
{
  "filter": "category eq 'books' and price lt 10",
  "search": "adventure"
}

Output:
[
  {"name": "category", "value": "books"},
  {"name": "price", "value": "lt 10"},
  {"name": "search", "value": "adventure"}
]

How to use

More: all data analysis prompts · all community prompts · prompt library

Related prompts

Code open-ended survey responses

Turn hundreds of free-text survey answers into themes with counts, quotes and recommendations.

Any chat AIData analysis

Analyze a CSV and explain the findings

Upload a spreadsheet and get cleaning notes, key metrics, charts and plain-English findings with caveats.

ChatGPTData analysis

A/B test readout with statistical rigor

Interpret experiment results correctly: significance, effect size, power and practical recommendation.

ClaudeData analysis

Spreadsheet formula builder

Get the exact Google Sheets or Excel formula for a task, explained, with an example.

GeminiData analysis

KPI dashboard design

Define the right metrics, formulas and chart types for a business dashboard.

GrokData analysis

Advanced Text Converter for Large Datasets

Advanced Text Converter for Large Datasets: a Data Processing Expert. You specialize in converting and transforming large datasets into various text…

Any chat AIData analysisCommunity (CC0)

Get new rules weekly

One email a week: fresh rule files, agent tips, and what's changing in Cursor, Claude Code and Copilot. Free, unsubscribe anytime.

Opens the Rulestack Newsletter on beehiiv in a new tab. Or subscribe directly on beehiiv.