title: android parsing JSON string error(truncated?)
body: <p>While i'm working with long JSON strings(5018 characters)
  I've encountered the following exception:</p>
  
  <pre><code>09-15 19:41:40.821: W/System.err(1551): org.json.JSONException: Value [{/* my long json string...... */
  09-15 19:41:40.831: W/System.err(1551):     at org.json.JSON.typeMismatch(JSON.java:111)
  09-15 19:41:40.831: W/System.err(1551):     at org.json.JSONObject.&lt;init&gt;(JSONObject.java:158)
  09-15 19:41:40.831: W/System.err(1551):     at org.json.JSONObject.&lt;init&gt;(JSONObject.java:171)
  </code></pre>
  
  <p>I've noticed that the string displayed in <code>org.json.JSONException: Value [....]</code> is only 4052 characters long(could be logcat's character limitation, I'm not sure).</p>
  
  <p>here's my code:</p>
  
  <pre><code>public DrupalNode getNode() {
      JSONObject drupalJSON;
  
      Log.d(TAG, "Length: "+drupalReturn.length());
      try {
          Log.d(TAG, "JSON data: "+this.drupalReturn);
          drupalJSON = new JSONObject(this.drupalReturn);
          DrupalNode drupalNode = new DrupalNode();
          drupalNode.title = drupalJSON.getString("title");
          return drupalNode;
      } catch (JSONException e) {
          Log.e(TAG, "JSON decode error");
          e.printStackTrace();
          return null;
      }
  
  }
  </code></pre>
  
  <p>I've tried JSON strings with >=2000 characters with no problem....</p>
  
  <p>Is the <code>JSONObject</code> truncating my JSON string? how do I fix this?</p>