Jason.DecodeError on Phoenix Websocket with Cowboy2

Hi guys, thanks for yor help, finally i have found the solution. The problem is my jason contains tab character. So what i have to do is just clear any additional character like newline or tab from:

"{   \"topic\": \"room:marketplace_disbursement_service\",   \"event\": \"inquiry_response\",   \"payload\": {},   \"ref\": 0 }"

to this one:

"{\"topic\":\"room:marketplace_disbursement_service\",\"event\":\"inquiry_response\",\"ref\":0}"

and it works , thanks guys for helping me that the problem is jason

1 Like