title: Get data from json in Scala
body: <p>I am trying to replicate this Python code in Scala:</p>
  
  <pre><code>import json
  
  def test_json():
      parsed = json.loads("""[{"UserName":"user1","Tags":"one, two, three"},{"UserName":"user2","Tags":"one, two, three"}]""")
      tags = parsed[0]["Tags"].split(", ")
      print(tags)
  
  test_json()
  </code></pre>
  
  <p>And I am coming up with this gibberish which does not work:</p>
  
  <pre><code>import scala.util.parsing.json._
  
  def testSix: Seq[String] = {
      val parsed = JSON.parseFull("""[{"UserName":"user1","Tags":"one, two, three"},{"UserName":"user2","Tags":"one, two, three"}]""")
      parsed.map(_ match {
          case head :: tail =&gt; head
          case _ =&gt; Option.empty
      }).map(_ match {
          case m: Map[String, String] =&gt; m("Tags").split(", ")
          case _ =&gt; Option.empty
      })
  }
  </code></pre>
  
  <p>How can I get the <code>Tags</code> in the first entry of the json?</p>