title: Creating JSON Array in Swift
body: <p>My backend is expecting the following JSON body: </p>
  
  <pre><code>[
      {
          "number":"561310"
      },
      {
          "number":"132333"   
      },
      {
          "number":"561310"   
      }
  ]
  </code></pre>
  
  <p>It works very nicely in Postman when I enter it like so:</p>
  
  <p><a href="https://i.stack.imgur.com/7m0MJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7m0MJ.png" alt="enter image description here"></a> </p>
  
  <p>How can I create a similar JSON using Swift? 
  Right now I've an array of phone numbers with the type String.</p>
  
  <pre><code>let phonenumbers = [String]()
  for phonenumber in phonenumbers {
      print(phonenumber)
  }
  </code></pre>
  
  <p>This will print: 
  561310
  132333
  561310</p>
  
  <p>After making this JSON I want to use it as a parameter for AlamoFire.</p>