Play with JSON down at the GROQ Arcade
Blog post from Sanity
GROQ is a versatile query language designed for querying, joining, and transforming JSON documents without the need for schemas or resolvers, enabling users to efficiently manipulate JSON data. It allows users to find objects based on nested field values, rewrite keys, and reorder objects within arrays according to property values, while offering functions for counting, selecting, and default value fallback. Originally available only within Sanity's query engine, GROQ was open-sourced at the JAMstack conference in London and is now accessible as a JavaScript library for use in applications and via the command line. Promoted as potentially more user-friendly than other tools, GROQ aims to simplify the process of working with JSON data, with resources such as a GROQ article on CSS-tricks offering further guidance.