title: IntelliJ IDEA: json file syntax
body: <p>I am using IntelliJ IDEA 14 for a web project, where I want to keep a file <code>a.js</code> containing a JSON object. The content of the <code>a.js</code> is</p>
  
  <pre><code>{
      "ac" : "abc",
      "d" : 4,
      "_constants": {}
  }
  </code></pre>
  
  <p>While editing this file, IntelliJ keeps reminding me that this file has syntactic errors. It makes a hints after "ac", "d" and "_constants", before the semicolon, saying "Expecting newline or semicolon".</p>
  
  <p>Does not IntelliJ IDEA accept a file containing a JSON object as a legitimate javascript file?</p>