I have an array of objects in JSON format coming in on the request. I would like to transform these objects into single line JSON (JSONL) in the velocity mapping template. Is this possible?
Going from:
[
{
"something": "else",
"another": "thing"
},
{
"something": "else",
"another": "thing"
}
]
Into
{ "something": "else", "another": "thing" }
{ "something": "else", "another": "thing" }
Any help would be much appreciated.
Something along those lines?