I have a scala app in which I'm using json4s to do some json manipulation. I have a few fields that I would like to convert into a new object.
For example I have the following:
"start_datetime":"2016-12-11T01:00:05+0000",
"type":"absolute",
"start":"5",
"type":"offset"
That would like to make into:
"time":[
{
"type":"absolute",
"start_datetime":"2016-12-11T01:00:05+0000"
},
{
"type":"offset",
"start":"10"
}
]
Any way I can do this using json4s?