Importing local files (streaming large JSON files)
is there an easy way to load a massive json file into memory? i found: https://deno.land/x/json_stream@v0.1.0-pre.12 but it's
fetch
on a local file example doesn't seem to work for me:
am i doing something wrong or is there a new way to load local files4 Replies
Could you share your code
JsonParseStream - @std/json - JSR
@std/json on JSR: (Streaming) parsing and serializing of JSON files
But if it's just one big array or object, then you'd just load it in like any other json file.
I've used this in my in-mem DB code.