title: Iterator JsonObject and JsonArray
body: <p>Below there is my json. I need get two strings in loop. How do it in one loop?
  Any ideas? Thanks</p>
  
  <p>This is my part of code:</p>
  
  <pre><code>JSONObject documentJSON = result.getJSONObject(SyncConsts.VALIDATION_ERRORS);
  
  for(Iterator&lt;String&gt; iter = documentJSON.keys();iter.hasNext();) {
  String key = iter.next();
  }
  </code></pre>
  
  <p>Example:
  <strong>Quantity - Wrong value, input must be a number</strong></p>
  
  <pre><code>{"Errors":{"Quantity":{"wrongValue":"Wrong value, input must be a number"},"Amount":{"wrongValue":"Wrong value, input must be a number"},"Amount_name":{"wrongValue":"Wrong value, input must be a number"},"Amount_name_first":{"wrongValue":"Wrong value, input must be a number"}}}
  </code></pre>