When target file I want to write in have existed, the results from JSON.stringify will be nested. And it is wrong.
When I remove the target file and rewrite result file, the result is correct.
At mergeData.js line 41.
You could remove data/mergedData.json and run mergeData.js to see results. Then run js again, and see it again.
When target file I want to write in have existed, the results from
JSON.stringify
will be nested. And it is wrong. When I remove the target file and rewrite result file, the result is correct.At mergeData.js line 41. You could remove
data/mergedData.json
and run mergeData.js to see results. Then run js again, and see it again.