title: How can I send a request to api.myjson.com with Swift and Xcode?
body: <p>I am trying to update a JSON file from my iOS app in Swift. I do not want to write a separate JQuery script, since I do not have enough knowledge nor the time to do so. The JSON file is hosted at the myjson api at api.myjson.com Here they explain how to use the api: <a href="http://myjson.com/api" rel="nofollow">http://myjson.com/api</a></p>
  
  <p>I understand that each method such as 'PUT' or 'POST' is appended to the end of the website, like api.myjson.com/example?type=PUT.</p>
  
  <p>What I am trying to figure out is the syntax to add to or update my JSON files stored here.</p>