SOA is generating JSON [null] for empty XML element
(Doc ID 2865610.1)
Last updated on SEPTEMBER 24, 2023
Applies to:
SOA Suite Cloud Service - Version 12.2.1.3 and laterInformation in this document applies to any platform.
Symptoms
SOA does not convert empty XML element in JSON empty [] array
XML format
------
<processResponse>
<teamType>
<shift/>
</teamType>
</processResponse>
XML -> JSON in SOA
-------------
{
"teamType" : {
"shift" : [ null ]
}
}
Expected behaviour
-------------------
Output:
{
"teamType": {
"shift": []
}
}
Cause
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
Symptoms |
Cause |
Solution |
References |