How to concat two JArray with json4s in Scala?

122 Views Asked by At

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?

0

There are 0 best solutions below