My Oracle Support Banner

Problem converting XML to JSON with null values (Doc ID 2764402.1)

Last updated on JANUARY 08, 2024

Applies to:

Oracle SOA Suite - Version 12.2.1.4.0 to 12.2.1.4.0 [Release 12c]
Information in this document applies to any platform.

Goal

REST Adapter: Problem converting XML to JSON which happened the below issue

1- the empty element is sent as null value in the json payload but it's expected to be empty string and the empty list not sent is not as []
current :
< Element_1/> => { "Element_1":null }

expected
< Element_1/> => { "Element_1":"" }
 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.