Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Issue with passing empty array to JSON in mapper

Vidhi Gupta2 days ago

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]

Comments
Post Details
Added 2 days ago
0 comments
13 views