on 05-01-2017 9:27 AM
HI
I am bit curious about how we can read input JSON data directly like we use XPATH to refrer XML tags
I want to set some custom properties and headers in Content modifier and send the same data i.e. JSON to HTTP request and reply.
Regards
GK
Hello Golu,
It's not possible to set the content of input json message to properties in content modifier.
You can have a Script and parse the incoming messages and set as properties or headers.
To know more about how to parse JSON you can search for jsonslurper in groovy it will ease handling JSON messages.
Regards,
Sriprasad Shivaram Bhat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it can only access the payload for reading if it's XML, unfortunately. A pitty that JSON parsing is not built-in and we need to use a script every time. Please vote for the corresponding feature request with SAP: https://influence.sap.com/sap/ino/#/idea/264381/?section=sectionDetails
No, the ContentModifier accepts "everything", but to use functions like XPath, the body must be XML
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.