limbowang / JiaDingWaiMai

9 stars 1 forks source link

bug for JSON.stringify in mergeData.js #2

Closed tzwm closed 10 years ago

tzwm commented 10 years ago

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.

tzwm commented 10 years ago

It's my problem. I read file I want to write.