I get data from REST API. I need to do a few request and concat array from each request into one Json.
//getting body of response
val json = parse(body)
val data = json \ "data"
//...
//... other request of data
val json_other = parse(body_other)
val data_other = json \ "data"
Both data
and data_other
are JArray values.
How can I concat them in one JArray?