cancel
Showing results for 
Search instead for 
Did you mean: 

REST adapter - How to set boolean value without quotes in JSON format

Former Member
0 Kudos

Hi All,

I am using REST receiver adapter (from AdvantCo) which converts data from XML to JSON format.

On target structure we have a boolean field which is mapped to a string field on source side.


Output i get:


{"product": [

{

"text": "My Adapter",

"isSapCertified": "true"

}

]}

but I want to have:


{"product": [

{

"text": "My Adapter",

"isSapCertified": true

}

]}

Please help


Regards,

Mandeep Virk

Accepted Solutions (1)

Accepted Solutions (1)

engswee
Active Contributor
0 Kudos

Hi Mandeep

For Advantco products, please refer to the manual provided by Advantco. The functionality to specify data type other than string is covered under section 5.3.2.5 of their REST adapter manual.

Regards

Eng Swee

Former Member
0 Kudos

Thanks Eng Swee.

This is helpful. It works.

User Guide document which we have, does not contain section 5.3.2.5

I'll check with AdvantCo team.

Regards,

Mandeep Virk

Answers (0)