propensive / rapture

Rapture
183 stars 39 forks source link

How to traver all json key? #235

Open yilaguan opened 8 years ago

yilaguan commented 8 years ago

Hi, I can not find a method in rapture.json to traver all json key, could you tell me?

johannegger commented 8 years ago

i guess you could just convert it to a Map[String,Json] and map it:

myJson.as[Map[String,Json]].map{ case (key,value) => ... }