title: Convert json array to Seq of model class in Scala Play framework
body: <p>I'm using Scala Play framework and <a href="https://instagram.com/developer/endpoints/" rel="nofollow">Instagram API</a>, and I want to extract a json array to my model class <code>User</code>:</p>
  
  <p><code>case class User(val userId: String, val username: String, val profilePhoto: String, val name: String)</code></p>
  
  <p>An json array example from the API is something like this:</p>
  
  <pre><code>{
    "pagination":  {},
    "meta":  {},
    "data":  [
       {
        "username": "carolinabentocb",
        "profile_picture": "https://igcdn-photos-f-a.akamaihd.net/hphotos-ak-xfa1/t51.2885-19/s150x150/11429783_1673078532912085_1496721162_a.jpg",
        "id": "363753337",
        "full_name": "Carolina Bento"
      },
       {
        "username": "pereira3044",
        "profile_picture": "https://igcdn-photos-e-a.akamaihd.net/hphotos-ak-xaf1/t51.2885-19/s150x150/11351764_1662987433917180_971708049_a.jpg",
        "id": "2141448590",
        "full_name": "Alex"
      }
  ]
  }
  </code></pre>
  
  <p>In <a href="https://www.playframework.com/documentation/2.2.x/ScalaJson#JsValue-to-a-model" rel="nofollow">this link</a> it is explained on how to map a json object to a model class, but how can I map the json array to a Seq/List/Array of Users?</p>