json parsing error because of datas in different lines
<p>Now I am doing an Android application. Now I am facing a problem in json parsing.My json page structure is like this.</p>

<pre><code>[
{

"id":3,

"name":"dd"

},

{

"id":4,

"name":"ggg"

}

]
</code></pre>

<p>I tried with the following code.</p>

<pre><code>URL website = new URL("url");
InputStream in = website.openStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
while ((line = reader.readLine()) != null) {
JSONArray ary=new JSONArray(line);
}
</code></pre>

<p>but I am getting exception.Because all the datas are in different lines.if it in the same line 
[{"id":3,"name":"dd"},{"id":4,"name":"ggg"}] then i can do easily...but they provide all datas in separate line ..thats the problem..Pls help me friends</p>
