'How to concat two JArray with json4s in Scala?
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?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
