ndi.database.fun.database2json
DATABASE2JSON - output contents of an ndi.session database to JSON files
DATABASE2JSON(S, OUTPUT_PATH)
Finds all documents in the database of an ndi.session object S
and writes them to the folder OUTPUT_PATH (full path).