How to pass double and simple quotes in POST request

When executing POST request while using RAW body format as explained in previous post, everything works great except when I have field keys or field values with simple quotes.

As you might know, in french language, we have a lot of punctuation marks :sweat_smile:.
If I use double quotes for the keys/values, and leave the simple quotes of punctuation like in the key below, the body gets wrong (see picture)

  "email de l'inscrivant": "${properties->get('email')}"

I tried to use exit symbols as below (I think that’s how we name that), then the body looks fine again, but execution does not work
“message”: “Unexpected token ’ in JSON at position 104”

  "email de l\''inscrivant": "${properties->get('email')}",

Since I need to pass simple quotes in both keys and/or values from the form, can you let me know how I should do that?

Can’t you just use following:

{
    "email de l'inscrivant": "${properties->get('email')}"
}

Indeed, it works when just leaving the “uggly” body like in 1st picture, it does not impact data actually sent. Sorry that it confused me in the first place.

I also tried again with the field values containing simple quotes and it also works fine

Many thanks!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.