Hi, I am trying to achieve JSON to CSV conversion using Groovy script in CPI.
Input:
[{ "PersonID":"P11", "UserID":"31", "EmployementID":"E221"},{ "PersonID":"P12", "UserID":"32", "EmployementID":"E222"}]Output:
P11,31,E221P12...
Hi ma_all ,I have tried those converters in CPI and they are working fine, but I want it in Groovy script.Can we achieve it in Groovy script?Regards,Ramya
csperlich I have tried with this :import com.sap.gateway.ip.core.customdev.util.Messageimport groovy.json.JsonSlurperdef Message processData(Message message) { def json = message.getBody(java.lang.String) def jsonSlurper = new JsonSlurper() ...