Is the order of the element guaranteed with "Appy JSON/XSL Transformation assertion"?

Document ID : KB000012626
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

Run Appy JSON/XSL Transformation. 

result : The order of the element changed. 

 

for example, 

Source XML: 

<S0829_1111>AAA</S0829_1111> 

<S0829_2222>BBB</S0829_2222> 

<S0829_3333>CCC</S0829_3333> 

<S0829_4444>DDD</S0829_4444> 

 

Target JSON 

"S0829_3333": "CCC", 

"S0829_1111": "AAA",??order is changed. 

"S0829_2222": "BBB", 

"S0829_4444": "DDD", 

Why?

 

Answer:

This is based on design spec. 

The order of the element isn't guaranteed with "Appy JSON/XSL Transformation assertion". 

So, the conditions of the question can occur.