Issue with passing empty array to JSON in mapper — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Issue with passing empty array to JSON in mapper

Summary:

Hi Community,

I have a requirement to pass the empty array to JSON message which is published to KAFKA. Source is xml which has hierarchical data and when an array type of tag is missing from XML then JSON should have empty array.


Content (please ensure you mask any confidential information):

I have used the XSLT function of choose when otherwise and when tag exists then regular mapping is provided and in otherwise condition I have only created the target node for array. However OIC is returning me null element in the array instead of empty array.

Expectation: “item”: []

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!