rapture icon indicating copy to clipboard operation
rapture copied to clipboard

How to traver all json key?

Open yilaguan opened this issue 8 years ago • 1 comments

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

yilaguan avatar Aug 24 '16 09:08 yilaguan

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

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

johannegger avatar Sep 20 '16 11:09 johannegger