SOLVED

Webhook Json Encode Issue

Go to solution

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

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
Level 10 - Champion Alumni

Re: Webhook Json Encode Issue

did it cause an error?

Did you check webhook docs on developer?

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.

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

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.