title: How to traverse through JsonArray of Integers in OpenEdge Progress 4gl?
body: <p>I have a JsonArray of Integers
  example - [1000, 1001, 1002,.....,1100].</p>
  <p>I need to traverse this JsonArray so that I can call my function one by one.</p>
  <p>I tried</p>
  <pre><code>function Amen returns JsonObject (input code as JsonArray, input lang as char):
  
  def var Amenities as JsonObject.
      Amenities = new JsonObject().
      Amenities:Add(&quot;Code&quot;, code).
      for first inditaal where string(inditaal.indi-nr) = string(code) and inditaal.taal-code = lang no-lock.
      end.
          Amenities:Add(&quot;Description&quot;, inditaal.inditaal-oms).
  
  return Amenities.
  
  end function.
  
  define variable code as JsonArray no-undo init [10400, 10239, 10205].
  
  def var result as JsonArray.
  result = new JsonArray().
  
  def var lineObj as JsonArray.
  
  do i = 1 to code :length:
      lineObj = new JsonArray().
      lineObj = code :GetJsonArray(i).
      result:Add(Amen(lineObj)).
  end.
  </code></pre>
  <p>I am unable to get integers from JsonArray code.
  Is there any other way to do it?</p>
  <p>As I am new to this language, I am unable to do so and also I'm not finding anything in the documentation.
  Please Help!</p>