I'm pretty new to the Scala language, so I need some help here.
I have this JSONArray (org.json is the name of the package):
[{"id":"HomePDA"},{"id":"House2"},{"id":"House"},{"id":"7c587a4b-851d-4aa7-a61f-dfdae8842298","value":"xxxxxxxxxxx"},{"id":"Home"}]
If this was in java, I could solve this using the "foreach" structure, but I can't find something similar to that structure. I only need to get the JSONObjects from this array.
Is that possible or do I need to change the data structure? I prefer the first option, the second one is a little mess.
Thank you in advance.