read write json file
cleaning up json-parse.js