title: Blank space in JSON Value
body: <p>I get a string in <code>JSON</code> format and I try to get the values. My method works fine, but if the value has a blank space in it, my method cracks up and it rains exceptions. Below is my code:</p>
  
  <pre><code>private String getValue(String jsonval)
  {
      try
      {
          JSONObject jsonObject = new JSONObject(jsonval);
          return jsonObject.optString("id");
      }
      catch(JSONException e)
      {
          e.printStackTrace();
      }
      return null;
  }
  </code></pre>
  
  <p>While this string works fine: <code>{titleDE=Deutschland, id=10, titleEN=Germany}</code>
  This one makes problems: <code>{titleDE=Costa Rica, id=10, titleEN=Costa Rica}</code>
  The exceptions says that the blank space is a unterminated object.</p>