getify / JSON.minify

Simple minifier for JSON to remove comments and whitespace
http://web.archive.org/web/20100629021329/http://blog.getify.com/2010/06/json-comments/
410 stars 102 forks source link

Example usage fails on node #30

Closed dfowler7437 closed 3 years ago

dfowler7437 commented 8 years ago

node --version v4.1.2

JSON.minify = JSON.minify || require("node-json-minify"); var myjson = JSON.minify( '{ /* comment */ "foo": 42 \n }' ); // {"foo":42} ^ TypeError: JSON.minify is not a function

pradyunsg commented 8 years ago

@dfowler7437 Is this still an issue?