# GROQ
> CLI tool for querying JSON and NDJSON with GROQ query language

## Summary
CLI tool for querying JSON and NDJSON documents using the GROQ query language from Sanity.io.

## Capabilities
- Query JSON documents with GROQ syntax
- Process NDJSON (newline-delimited JSON) files
- Read data from files or stdin
- Filter, project, and transform JSON data

## When to Use
- User works with Sanity.io and GROQ queries
- User needs to query JSON/NDJSON data from the CLI

## When NOT to Use
- User prefers jq for JSON processing
- User is not familiar with GROQ syntax

## Related Tools
- [jq](/tools/jq) (alternative): jq is the most popular JSON query tool

---
Source: https://littlescripts.sh/tools/groq
