Wr

Write JSON processor queries (jq) in natural language

Hacker News

Write JSON processor queries (jq) in natural language

Hey HN! Jaiqu is an AI agent for creating repeatable JSON transforms using jq query language syntax. Jaiqu translates complex JSON structures into repeatable jq queries. jq is a command line utility built for fast, reliable JSON queries. Jaiqu takes advantage of the LLMs for both constructing jq queries as well as using feedback to fix errors/invalid results if those queries are incorrect. Writing code to parse JSON is super annoying. It usually involves manually reading huge JSON balls, parsing the keys in a language of your choice, and pulling the data manually. Also, you're likely to run into key mismatches (i.e. source data might have "customer_id" as a key but my table is "user_id"), so you would have to write the translation dictionaries by hand. This struck me as a task that was analogous to the many AI "natural language to SQL" editors out there. However, there were a lot of consistency issues where the LLMs would not produce functioning code. So I wrote an AI agent that does it for me. It only takes two args: 1. A blob of messy JSON containing data you want 2. A JSON schema formatted in the way you want Jaiqu generates a repeatable jq query that collects the data in the exact JSON schema you specify. This way, you can run this query as many times you want or save it as a config without having to prompt LLMs each and every time. This tool beats the standard "prompt ChatGPT for a jq query" because by and large, LLMs don't perform too well when writing DSLs like jq. Jaiqu essentially works by: 1. Fuzzy matching each key against your schema to make sure it's available to query 2. Writing individual jq queries to fetch and transform those keys 3. Compiling each individual query into a single complex jq query. 4. Feeding back any errors or data mismatches to a "self-healing" loop that adjusts the queries accordingly until it works. Would love to hear thoughts or feedback. This has saved our team a ton of time internally, so hopefully it can help others as well.

Share card

Actual performance

38points
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: agent, user, chatgpt · Missing: mac, agents, macos
92%92% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
71%71% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: io · Missing: https docs, excited, just released
55%55% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
49%49% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
33%33% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
19%19% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: chat · Missing: web3, crypto, cryptocurrency
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Ma
MagiQL, a GraphQL wrapper for natural language queries59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MagiQL, a GraphQL wrapper for natural language queries

Hacker News7
Ti
Tingy – search videos with natural language queries52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tingy – search videos with natural language queries

Hacker News21
GraphAsk
GraphAsk43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Transform dataset into visuals with natural language queries

Indie Hackers1$800,000/moai
GraphAsk
GraphAsk28%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Transform dataset into visuals with natural language queries

Indie Hackers
Qu
Queries – Natural Language Data Analysis from Structured43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Queries – Natural Language Data Analysis from Structured

Hacker News3
py
pypiscout.com – Find packages on PyPI with natural language queries55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

pypiscout.com – Find packages on PyPI with natural language queries

Hacker News2
Na
Natural Language Querying43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Natural Language Querying

Hacker News17
Wi
Wit – Natural language for your app45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Wit – Natural language for your app

Hacker News321
Be
Beaches of Greece, natural-language search for Greek beaches51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Beaches of Greece, natural-language search for Greek beaches

Hacker News1
Ma
Make GLSL Shaders with natural language52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Make GLSL Shaders with natural language

Hacker News1