Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on 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


    type.png (66.1 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.