In my Java program, I have pipeline separated string "value1|value2|value3|value4". I would like to convert that string to a JSON object in java like the following:
{ “ payload” : { "field1": value1, "field2": value2, "field3": value3, "field4": value4 } }
And I would like to read field1, field2, field3, field4 from a configuration file. Is it possible to do that transformation with Smooks or with any other library ?