Attempting to send a json string via WebSockets to Javascript and getting a Syntax Error
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.
精彩评论