Slows down my application for 10 seconds
See: https://github.com/strongloop/express/issues/2583
Removed this line and it worked:
JSONC = require('json-comments')
Resorted to using this module instead: https://github.com/sindresorhus/strip-json-comments
When the json file is big enough. The module don`t run quickly.
See https://github.com/numbcoder/json-comments/blob/master/lib/jsonc.js
The algorithm is too slow.
Had the same problem and was also forced to change to strip.json-comments. :-(
From my perspective, the problem is that you cannot avoid that JSONC installs itself globally. If it would only provide the JSONC object, you would have control and could use it only for small files. But if it is globally installed in a real world application, the extra costs of swapping out the fast default JSON parser is just too high.