title: Property 'name' does not exist on type 'JSON' in typescript / angularJs 2
body: <p>I am using typescript language in angularjs 2 to my REST api application, the problem is - typescript gives compile time error of </p>
  
  <p><code>[ts] Property 'name' does not exist on type 'JSON'.any</code></p>
  
  <p>WHEN I TRY TO ACCESS INCOMING JSON Object, my function code is below</p>
  
  <pre><code>createPerformanceChart(data: JSON) {
      // Show Up the Fund Details Data 
      var details: any;
      for(var j = 0 ; j &lt; Object.keys(this.funds).length; j++)
      {
          if(data.name == this.funds[j].name) // data.name throws Error
          {
              details = this.funds[j];
          }
      }
  }
  </code></pre>
  
  <p>How can I convert the JSON or access JSON Object - such that it does not throw compile time error and let me compile the code.</p>