If pub.json:documentToJSONString gets a document with a list as element it generates an array, even if there is ony one element in it. Your problem probably is in the transformation to the document from the xml. Please have a look into the generated document using debugger, I assume you won’t have a list there if only one element is present. The fields arrays and makeArrays of pub.xml:xmlNodeToDocument allow for explicit control where to generate arrays.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
From DataBase to JSON Array | 5 | 902 | April 2, 2021 | |
SOAP to REST Transformation | 6 | 5039 | July 24, 2024 | |
Issues in creating JSON document Type from JSON Schema
|
6 | 1370 | February 5, 2024 | |
JSON Support for IS | 10 | 13639 | April 2, 2021 | |
Integration Server : SOAP to REST transformation | 10 | 2969 | September 12, 2021 |