开发者

Attempting to send a json string via WebSockets to Javascript and getting a Syntax Error

开发者 https://www.devze.com 2023-03-19 16:31 出处:网络
This is the j开发者_StackOverflow中文版son object: {\"Packet\":{\"Response\":\"Handshake\",\"Code\":\"lmhn\",\"UID\":\"4e1d137caaed7\"}}

This is the j开发者_StackOverflow中文版son object:

{"Packet":{"Response":"Handshake","Code":"lmhn","UID":"4e1d137caaed7"}}

For some reason I am getting a syntax error declaring an illegal token. I don't see it, do you?


I'd say that's valid JSON, and this validator agrees.

I think you need to show us more of what you're doing and tell us exactly what's giving the syntax error.

0

精彩评论

暂无评论...
验证码 换一张
取 消