title: Getting binary data from a JSON object
body: <p>I'm receiving this response from a RESTful service and saving it to a JSONObject:</p>
  
  <pre><code>{
      "GetCampaignsInProgressListResult": [
          108,
          162,
          171,
          103,
          185,
          147,
          218,
          16,
          67,
          226,
          44,
          // etc etc
      ]
  }
  </code></pre>
  
  <p>The data above represents a binary array. I am trying to read it with the following code:</p>
  
  <pre><code>String rawResponse = client.getResponse();
  JSONArray entries = null;
  JSONObject o = new JSONObject(rawResponse);
  entries = new JSONArray(o.getString("GetCampaignsInProgressListResult"));
  </code></pre>
  
  <p>I would like to access the binary data and save it to a byte array, but since it does not have an attributes name I can't use:</p>
  
  <pre><code>for (int i = 0; i &lt; entriesLength; i++) {
      JSONObject entry = entries.getJSONObject(i);
      Object something = entry.getString("SomeTag");
  }
  </code></pre>
  
  <p>How can I access the binary array?</p>