DEV Community

Discussion on: Getting started with Sanity as a headless CMS

Collapse
 
darryljmorley profile image
Darryl

Why ndjson and not standard json?

Collapse
 
kmelve profile image
Knut Melvær

The NDJSON is just for the exports, because it's more suitable for large data collections. If you querty the GROQ or GraphQL APIs, you'll get the results as regular JSON. That being said, it's relatively easy to convert betweet the two formats.