title: IDEA's "Missing require() statement" inspection highlights "JSON"
body: <p>When writing Node.js apps in Intellij IDEA, the "Missing require() statement" inspection complains about any use of <code>JSON</code>.</p>
  
  <p>For example, the following line is flagged: <code>var some_object = JSON.parse(some_json_text);</code></p>
  
  <p>It then recommends adding <code>var JSON = require("path")</code> as the fix, which is obviously incorrect. The code still runs just fine, obviously, but the faulty inspection is frustrating.</p>
  
  <p>There's a similar problem when using Mocha or Chai, which is solved by adding some DefinitelyTyped libraries. Is there perhaps a library that I'm missing for this?</p>
  
  <p>Thanks,
  James</p>
  
  <p>**Edit:
  Ctrl+clicking on it provides these:
  <a href="https://i.stack.imgur.com/bJJQy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bJJQy.png" alt="declaration options"></a></p>