title: JSON: "Unexpected character (<) at position 0"
body: <p>Here's the twitch.tv api request to get channel summary: <code>http://api.justin.tv/api/streams/summary.json?channel=mychannel</code>. If I post it via browser, I get correct results. But programmatically I receive an exception during result parsing.</p>
  
  <p>I use apache HttpClient to send requests and receive responses. And JSON-Simple to parse JSON content.</p>
  
  <p>This is how I try to get JSON from response according to api:</p>
  
  <pre><code>HttpClient httpClient = HttpClients.createDefault();
  HttpGet getRequest = new HttpGet(new URL("http://api.justin.tv/api/streams/summary.json?channel=mychannel").toURI());
  getRequest.addHeader("Accept", "application/json");
  HttpResponse response = httpClient.execute(getRequest);
  
  BufferedReader br = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
  String output;
  StringBuilder builder = new StringBuilder();
  while((output = br.readLine()) != null) {
      builder.append(output);
  }
  br.close();
  
  JSONParser parser = new JSONParser();
  Object obj = parser.parse(builder.toString()); //Exception occurs here
  </code></pre>
  
  <p>Expected result: <code>{"average_bitrate":0,"viewers_count":"0","streams_count":0}</code>, but execution of example above leads to: <code>Unexpected character (&lt;) at position 0.</code></p>
  
  <p>How to get JSON body from response? Browser displays the result correct.</p>