Our ask to the community: has anyone tackled a similar situation like this before? If so, can you provide some guidance on how you went about working through this challenge?
Please let me know if any further information would be helpful.
Do you have persistent classes for these messages?
I thought I'd add to my previous response to give some context.
We have not yet established an approach to tackling this issue however based on your question would you suggest that a persistent class is the best place to start? Any pointers in the right direction will be very helpful. Thanks.
If you have classes (persistent or not) producing JSON is much easier.
How will you approach it Eduard?
Please bear in mind some of these fields vary in segment and are dynamic.
Disclaimer. I am not familiar with EDI.
Then you need a dtl to transform incoming message into your new classes. If there's a lot of them maybe it would be better to write one generic transformer or write a transformer generator based on class (which would generate transformation method based on class properties).