title: How to Use Circe for Decoding JSON Lists/Arrays in Scala
body: <p>I have the code snippet</p>
  
  <pre><code>cursor.downField("params").downField("playlist").downField("items").as[List[Clip]]
  </code></pre>
  
  <p>Where Clip is a simple case class of strings and numbers. The incoming Json should contain a json object "playlist" with an array of "items" where each item is a clip. So the json should look like</p>
  
  <pre><code>{
    "playlist": {
        "name": "Sample Playlist",
        "items": [
          {
            "clipId":"xyz", 
            "name":"abc"
          },
          {
            "clipId":"pqr", 
            "name":"def"
          } 
        ]
     }
  }
  </code></pre>
  
  <p>With the code snippet above, I'm getting the compile error:</p>
  
  <pre><code> Error:(147, 81) could not find implicit value for parameter d:     
   io.circe.Decoder[List[com.packagename.model.Clip]]
        cursor.downField("params").downField("playlist").downField("items").as[List[Clip]]
  </code></pre>
  
  <p>What am I doing wrong? How do you setup decoding for a list/array of simple items using circe?</p>