cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Integration Suite-Convert string to Boolean in JSON formate

pooja_tiwari3
Participant
0 Kudos

Hi Experts,

We have a requirement where in JSON data we have few fields which are Boolean but by using "xml to Json" converter, its coming as String only.

Kindly suggest how should I Proceed. if possible share Groovy script.

Thanks and Regards,

Pooja

View Entire Topic
PriyankaChak
Active Contributor

Hi Pooja,

You need to use groovy script to convert those fields into boolean format.

Regards,

Priyanka

pooja_tiwari3
Participant
0 Kudos

HI Priyanka,

Do you have the script handy to convert "true" to true and "false" to false in json file?