title: Android how to get int type in JSONObject
body: <p>I have an issue with putting <code>int</code> in JSON. I have an integer where I need to save the error code which server returns me. The problem is that I have to parse it in <code>JSONObject</code>, but <code>JSONObject</code> takes only Strings, not integers. Here is an example what I'm trying to do:</p>
  
  <pre><code>int errorCode;
  JSONObject ErrorCode;
  ErrorCode = new JSONObject(errorCode);
  </code></pre>
  
  <p>Any suggestions how to solve that issue?</p>