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”: []