Angular2 Property does not exist on type 'any[]' (JSON)
<p>I have a class named <strong>Condition</strong>:</p>

<pre><code>export class Condition{
    name: string;
    date: string;
    link: string;
}
</code></pre>

<p>And a function named <strong>search</strong> that makes http get requests:</p>

<pre><code>public search(params: string): Observable&lt;json[]&gt; {
    let queryString = this.serverUrl + params;

     return this.http.get(queryString)
                     .map((res:Response) =&gt; res.json())
                     .catch((error:any) =&gt; Observable.throw(error.json().error || 'Server error'));

 } 
</code></pre>

<p>And I get an object to get conditions with specific properties from it. It has absolutely an object array in its <strong>entry</strong> attribute:</p>

<pre><code>this.search(`Condition?patient=Patient/107795`).subscribe(data =&gt; {
    var conditionArray = data.entry;       // data.entry is absolutely an ARRAY
    for(var condition of conditionArray){
        conditions.push({    //conditions is a Condition[]
            name: condition.resource.code.coding[0].display,
            date: condition.resource.dateRecorded,
            link: "condition/" + condition.resource.id
        });
    }
    } , err =&gt; { console.log(err); } );
</code></pre>

<p>I was started these project <strong>before I wrote these code</strong> with start script:</p>

<pre><code>"scripts": {
    "start": "tsc &amp;&amp; concurrently \"npm run tsc:w\" \"npm run lite\" ",
</code></pre>

<p>And the project was working as I wanted and no error on the console. However, when I stopped it and started again with the start script, it gives this error:</p>

<pre><code>error TS2339: Property 'entry' does not exist on type 'any[]'.
</code></pre>

<p>Do you know what is wrong with it and how can I fix it? </p>