I'm working on a static website (hosted on GitHub pages for now) that's a Svelte PWA (Progressive Web App). A Svelte component on my main page needs to access and display some text from large json files without loading the entire file into memory. The files will be already on the device as the PWA will be downloading them before allowing the user to use them. Is there a way/library in javascript to search the json file for just one nested object or array and then only load that into memory to display?
I looked already for existing questions on this issue, and found solutions for Python and Java, but not JS (Python: Reading rather large JSON files and Java: how to parse a huge JSON file without loading it in memory)