SOLVED

Webhook Json Encode Issue

Go to solution
Keerthana_Shan1
Level 2

Webhook Json Encode Issue

Hi,

I am using webhook to call API, in input there was special characters in certain fields like name -Олег. but this value is encoded like  "\u041e\u043b\u0435\u0433" in webhook request.

Do we have any other configuration to avoid this encoding.?

1 ACCEPTED SOLUTION

Accepted Solutions
Keerthana_Shan1
Level 2

Re: Webhook Json Encode Issue

The encoding is working if we gave request token encoding as Form/URL instead of Json.

View solution in original post

4 REPLIES 4
Josh_Hill13
Level 10 - Champion Alumni

Re: Webhook Json Encode Issue

did it cause an error?

Did you check webhook docs on developer?

SanfordWhiteman
Level 10 - Community Moderator

Re: Webhook Json Encode Issue

Any JSON-compatible API will understand this encoding: it's explicitly described in the JSON standard. If the remote endpoint can't understand it, file a bug with them as they're broken.

Keerthana_Shan1
Level 2

Re: Webhook Json Encode Issue

The encoding is working if we gave request token encoding as Form/URL instead of Json.

SanfordWhiteman
Level 10 - Community Moderator

Re: Webhook Json Encode Issue

OK, then the remote endpoint was expecting URI-encoded in the first place. Like I said, there's nothing wrong with escaped Unicode code points in JSON.