Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fs = require("fs")
- readJSON = (path, cb) ->
- fs.readFile path, "utf8", (err, data) ->
- cb JSON.parse(data)
- filename = "wellformed.json" #"malformed.json"
- readJSON filename, (data) ->
- console.log data
- console.log "end"
Add Comment
Please, Sign In to add comment