cancel
Showing results for 
Search instead for 
Did you mean: 

BTP CI-XML to JSON converter to generate array element with one record

satsunros
Explorer
0 Kudos
163

Hello Community,
I used XML to Json converter in BTP CI, where I want to specify some of the elements as an array.
This I achieved through this below option.
Only challenge now is, when there is a single record, then the JSON output didn't show as an array element. it only shows as an array when there are multiple records. 

However partner system always expects an array either single or multiple records, is their any possibility to achieve this solution ?

 

satsunros_0-1718296814765.png

Thank you in advance.

Sateesh N

Ryan-Crosby
Active Contributor
When I test this scenario I get an array whether the XML entity is a single entity or one that is comprised of multiple entities.

Accepted Solutions (1)

Accepted Solutions (1)

satsunros
Explorer
0 Kudos

Hello Ryan,

Thank you very much for input. yes it works. 

Only thing I missed out  root node on the XML element path. instead using this data/HEAD/HEAD_ENTRIES , I used this XML element path  HEAD/HEAD_ENTRIES caused this issue.

Now I fixed it. Thank you for your input. 

Have a nice day.

Sateesh

Answers (0)