Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jul 28, 2016 at 02:01 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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