Support top-level array in JSON files
Is your feature request related to a problem? Please describe
When working on SEO, there are many instances where creating a single JSON array file is MUCh more convenient than having hundreds of small files, especially when working with AI. If I want to change something to all my content, I would either have to manually change files one by one, or ask Cursor to go through every file and edit it, which is much more expensive AND complex than editing a single file
Describe the solution you'd like
Simply being able to have one single JSON file for all my documents.
Describe alternatives you've considered
I tried creating a collection with a sub-property array, but it does not support large arrays, after 96 or so I get an error (does not seems related to the length but more the size of the file. I made some tests and it seems like 59kb is the size after which it crashes, with syntax error near "collectionName", no matter what the syntax is)
Additional context
Have you tried creating a custom source for your collection? https://content.nuxt.com/docs/advanced/custom-source Your goal is very similar to the custom source example in the docs.
Mhhm, but how could I get the JSON file from the content folder then? I'd rather not create an API endpoint just for that
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity.