SAP Knowledge Base Article - Preview

3841790 - JSON fields in the output are sorted alphabetically instead of preserving the original field sequence

Symptom

After upgrading to JDK 21 in SAP Integration Suite, Groovy scripts using JsonSlurper exhibit unexpected behavior in JSON field ordering. JSON fields in the output are sorted alphabetically instead of preserving the original field sequence.

The issue is observed in the JDK 21 environment, whereas the JSON field order is preserved as expected in the JDK 17 environment. As a result, target systems that are sensitive to JSON field ordering may reject the reordered payloads, leading to integration failures.


Read more...

Environment

Cloud Integration

SAP Integration Suite

Product

SAP Ariba Procurement, cloud edition all versions

Keywords

SAP Integration Suite, Groovy Script, JSONSlurper, JDK 21, JSON Field Ordering, Alphabetical Sorting, JSON Payload, Runtime Behavior,  , KBA , LOD-HCI-PI-WT-IFL , Integration Designer , Known Error

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.