I have this jsArray (json Array) and I am using import play.api.libs.json._ library.
[{”device”:”Samsung S8”,”android”:true},
{”device”:”iPhone 8”,”android”:false},
{”device”:”MacBook Air Pro”,”android”:false},
{”device”:”Dell XPS”,”android”:false}]
I want to traverse through this json array in Scala. This array is assigned to var dependency. I want to get the device names which are android. How do I do that?