const db: MemoryDB<Book> = new MemoryDB<Book>('books')
// Load BIG json file using streaming (Also gets values from particular field)
await db.loadFile('./bigjson.json', 'data.books.*')
Ссылки:
https://stackoverflow.com/questions/11874096/parse-large-json-file-in-nodejs