title: How to update embedded JSON file in iOS app bundle whenever refresh button is clicked
body: <p>I have a application where my data is offline in <code>JSON</code> format but i want the app to update the <code>JSON</code> file from the internet whenever refresh button is touched. </p>
  
  <p>I have used <code>JSON</code> file as local database and the updated database would be generated on the server when the database is updated. The app should download the <code>JSON</code> file from internet and use it as the local database. </p>
  
  <p>How this can be made possible? I am confused with what method is to be used and how it can be done. </p>