Skip to main content

Magnus Holm

Magnus Holm is a backend engineer at Sanity.io. He’s also known for discovering the XSS-exploit on Twitter back in 2010 that spread like wildfire, and other exploits.

Article

Query JSON documents in the Terminal with GROQ

JSON documents are everywhere today, but they are rarely structured the way you want them to be. They often include too much data, have weirdly named fields, or place the data in unnecessary nested objects. Graph-Relational Object Queries (GROQ) is a query language (like SQL, but different) which is designed to work directly on JSON documents. It basically lets you write queries you can quickly filter and then reformat JSON documents to get them into the most convenient shape.… Read article