title: Save data from api request to a model (JSON)
body: <p>Ok, so over the last week or so I have been getting to grips with making api calls and then having the response returned as JSON and then outputting the parts I want to my view (getting there i think, albeit slowly). The next part of my learning curve is to take this data and save it to a model so that i can use it elsewhere in my app.</p>
  
  <p>What i want to achieve is after the api request has been made and the results are displayed I want to click a button that will then post the data to my model</p>
  
  <p>In this example I am getting data for books via its ISBN number from the itunes api</p>
  
  <p>here is an example of the data returned</p>
  
  <pre><code> {
   "resultCount":1,
    "results": [
   {"kind":"ebook", "artistId":545975179, "artistName":"Gareth Halfacree", "price":9.99, 
   "description":"&lt;p&gt;&lt;b&gt;Make the most out of the world&amp;rsquo;s first truly compact  computer&lt;\/b&gt;&lt;\/p&gt;&lt;p&gt;It's the size of a credit card, it can be charged like a smartphone,  it runs on open-source Linux, and it holds the promise of bringing programming and playing  to millions at low cost. And now you can learn how to use this amazing computer from its co-creator, Eben Upton, in &lt;i&gt;Raspberry Pi User Guide&lt;\/i&gt;. Cowritten with Gareth Halfacree, this guide gets you up and running on Raspberry Pi, whether you're an educator, hacker, hobbyist, or kid. Learn how to connect your Pi to other hardware, install software, write basic programs, and set it up to run robots, multimedia centers, and more.&lt;\/p&gt;&lt;ul&gt;&lt;li&gt;Gets you up and running on Raspberry Pi, a high-tech computer the size of a credit card &lt;\/li&gt;&lt;li&gt;Helps educators teach students how to program &lt;\/li&gt;&lt;li&gt;Covers connecting Raspberry Pi to other hardware, such as monitors and keyboards, how to install software, and how to configure Raspberry Pi &lt;\/li&gt;&lt;li&gt;Shows you how to set up Raspberry Pi as a simple productivity computer, write basic programs in Python, connect to servos and sensors, and drive a robot or multimedia center &lt;\/li&gt;&lt;\/ul&gt;&lt;p&gt;Adults, kids, and devoted hardware hackers, now that you've got a Raspberry Pi, get the very most out of it with &lt;i&gt;Raspberry Pi User Guide&lt;\/i&gt;.&lt;\/p&gt;", "genreIds":["10017", "38", "9027"], "releaseDate":"2012-08-30T07:00:00Z", "currency":"USD", "genres":["Computers", "Books", "Computers &amp; Internet"], "trackId":559783692, "trackName":"Raspberry Pi User Guide",  "artistIds":[545975179],  "artworkUrl60":"http://a2.mzstatic.com/us/r30/Publication/v4/ba/a8/2c/baa82ce0-2ac7-7026-04da-6f74bc97b403/9781118464496.60x60-50.jpg", "artistViewUrl":"https://itunes.apple.com/us/artist/gareth-halfacree/id545975179?mt=11&amp;uo=4", "trackCensoredName":"Raspberry Pi User Guide", "formattedPrice":"$9.99", "artworkUrl100":"http://a4.mzstatic.com/us/r30/Publication/v4/ba/a8/2c/baa82ce0-2ac7-7026-04da-6f74bc97b403/9781118464496.100x100-75.jpg", "trackViewUrl":"https://itunes.apple.com/us/book/raspberry-pi-user-guide/id559783692?mt=11&amp;uo=4", "averageUserRating":2.5, "userRatingCount":5}]
  }
  </code></pre>
  
  <p>I would like to save the artistName, Description, an image (would i need paperclip for this?) and the trackName</p>
  
  <p>Can anyone offer some advice on how i go about this, obviously I create a model and setup the table columns (I understand that the column names can be anything?) but after this Im a little lost</p>
  
  <p>If anyone could proviede an Example that would be great as I could then follow the process and understand what is going on</p>
  
  <p>Any help appreciated</p>