Search code examples
jsonxmlbiztalkbiztalk-pipelines

BizTalk XML to JSON Pipeline - Force JSON array even without a schema target namespace


Coming from this question: Conversion of XML Schema to JSON array list in Biztalk

We have the same situation: Our XML needs to be converted to JSON and we have child objects which can occur one or multiple times which must always result in a JSON array.

The problem is that we are not able to set a target namespace because our schema is generated by SAP (IDoc).

Are there other options to do the serialization? I would like to avoid a custom implementation for JSON serialization.


Solution

  • Create an internal BizTalk schema with a target namespace and map the SAP payload to that.