I'm working to configure the ION API Connection Point to convert a BOD that matches my API request into JSON. The conversion structure works well in general.
However, I'm encountering an issue:
When there's only a single purchase order line, the resulting JSON omits the array brackets [], which causes problems for my downstream processing that expects an array regardless of the number of items.
Is there anything I can include in the XML during the mapping process to force the resulting JSON to always use an array, even when there's only a single element, during the BOD-to-JSON conversion?
My Object Schema for the incoming document used within the connection point describes purchase_orders as a repeatable group.
Any ideas would be appreciated.
Here are some additional detail: