How do I parse a Json-String existing as an Array of Objects WITHOUT creating Readers and Writers?
[
{"key": "value1"},
{"key": "value2"}
I would like to end up with a List of Maps or anything similar:
Seq(Map("key" -> "value1"), Map("key" -> "value2"))
Json.parse(json) just returns a JsValue which cannot be iterated upon, so an array-walk is not possible?
With lift-json you could just write:
val prizes = for {
JObject(str) <- json.parse(json)
JField("key", JString(key)) <- str
} yield MyObj(key)