Cleaning based on https://npmjs.org/doc/json.html