I'm sorry if this question is too simple, I'm just starting with Scala.
I was trying to parse some JSON in Scala, and I'm having a bit of trouble to understand what is going on below:
scala> import scala.util.parsing.json.JSON
scala> val x = JSON.parseFull("""{"name": "x", "lang": "en"} """)
x: Option[Any] = Some(Map(name -> x, lang -> en))
Now, as parseFull returns an Option[Any], and as I know that it really contains a value, I can write:
scala> x.get
res6: Any = Map(name -> x, lang -> en)
How can I process this Any result? What I'd like is to access directly to the key or the value, doing something similar to x.get("name").
Thanks a lot!