These two functions are aimed to replace the default JSON.stringify
and JSON.parse
. The size of target JSON files are among 100MiB and 400Mib.
You have to conduct sufficient tests before using these two functions. They're not written under strict JSON standard.
(filepath, encoding, callback) => {}
encoding: default utf-8
(filepath, data, callback) => {}
callback: data => {}
- Although
read_json
won't crash, but it's still too slow in compare to thewrite_json
.