Commit 9ee79bc9 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent a2cd508b
......@@ -124,7 +124,17 @@ async function run(root, name, directory, timestamp) {
}
createfileADV(root, timestamp, name, JSON.stringify(las, null, 2))
const json = require('big-json');
const stringifyStream = json.createStringifyStream({
body: las
});
stringifyStream.on('data', function(strChunk) {
// => BIG_POJO will be sent out in JSON chunks as the object is traversed
createfileADV(root,timestamp, name, strChunk)
});
last = []
}
......
......@@ -130,7 +130,17 @@ async function run(root,name, directory, timestamp) {
}
createfileADV(root,timestamp, name, JSON.stringify(las, null, 2))
const json = require('big-json');
const stringifyStream = json.createStringifyStream({
body: las
});
stringifyStream.on('data', function(strChunk) {
// => BIG_POJO will be sent out in JSON chunks as the object is traversed
createfileADV(root,timestamp, name, strChunk)
});
last = []
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment