title: Parsing JObject for key and values with json4s-jackson
body: <p>How can I get the keys <code>scenario0</code> and <code>scenario1</code> for each JObject in my List?</p>
  
  <p>poop is a:</p>
  
  <pre><code>poop: List[org.json4s.JsonAST.JValue] = List(JObject(List((street,JString(Bulevard)), (city,JString(Helsinki)))), JObject(List((street,JString(Bulevard)), (city,JString(Helsinki)))))
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>import org.json4s.jackson.JsonMethods._
  import org.json4s._
  
  implicit val formats = DefaultFormats
  
  val json = parse("""
           {
              "address0": {
                "scenario0": {
                  "street": "Bulevard",
                  "city": "Helsinki"
                },
                "scenario1": {
                  "street": "Bulevard",
                  "city": "Helsinki"
                }
              },
              "address1": {
                "scenario0": {
                   "street": "Bulevard",
                   "city": "Helsinki"
                 },
                 "scenario1": {
                   "street": "Bulevard",
                   "city": "Helsinki"
                 }
              }
           }""")
  
  val poop = (json \ "address0").children
  poop.foreach(p =&gt; {
  
  })
  </code></pre>