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. 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”: []
Actual: “item”: [null]