You can use simple and recursive path to traverse JSON objects in Scala, assuming you're using the Play Framework
val jsonDetails:JsValue = Json.parse("""
{"details":
[{"Level": "1", "member":"age", "claim":"age"},
{"Level": "2", "member": "dob", "claim": "dob2"},
{"Level": "2", "member":"name1", "claim":"name"}
]}
""")
var pathToFirstLevel = (jsonDetails\"details"\0\"Level")
var allIstancesOfMember = (jsonDetails\\"member")
Will return
res1: play.api.libs.json.JsLookupResult = JsDefined("1")
res2: Seq[play.api.libs.json.JsValue] = List("age", "dob", "name1")
You can grab the data you're looking for and populate your lists, but you'll need to convert the JsValues to values Scala can work with (use .as[T] not asInstanceOf[T])
You can also use map
var allIstancesOfMember =(jsonDetails\\"member").map(_.as[String])
There's loads of information on traversing JSON elements in Scala using the Play Framework at https://www.playframework.com/documentation/2.6.x/ScalaJson
does that answer your question?