title: Iterate through javax.json.JsonArray
body: <p>I have a <code>JsonArray</code> and I am using the implementation as given in <a href="https://www.jcp.org/en/jsr/detail?id=353" rel="nofollow noreferrer">Java EE 7</a>. How do I iterate thorugh this <code>JsonArray</code>?</p>
  
  <p>I have searched thorugh this site but have found only answer which relate to <code>org.json.JSONArray</code> (like this <a href="https://stackoverflow.com/questions/1568762/accessing-members-of-items-in-a-jsonarray-with-java">Accessing members of items in a JSONArray with Java</a>) which I cannot use as <code>javax.json.JsonArray</code> does not have the length method.</p>