title: Java Parse Json Byte Array
body: <p>Im developing an Android application which are using an webservice to fetch an image that are going to be displayed in the application.</p>
  
  <p>I'm using JSON as my format. The whole connection process works like a charm but i need help with parsing the response from the webservice request.</p>
  
  <p>This is my result:</p>
  
  <pre><code>[255,12,87,183,232,34,64,121,182,23]
  </code></pre>
  
  <p>Of course this is not the real data, im just trying to explain how the data looks like when i receive it. So my question is, how do i parse this data into an byte array?</p>
  
  <p>Here is my connection code this far:</p>
  
  <pre><code>HttpResponse response = httpClient.execute(request);
  HttpEntity responseEntity = response.getEntity();
  InputStream stream = responseEntity.getContent();
  String string_result= convertStreamToString(stream);
  </code></pre>
  
  <p>This works great and the variable 'string_result' contains the data that was received.
  So if someone know how to simply parse this JSON String Containing An Byte Array i would appreciate some help.</p>