ecorm / cppwamp

C++ client library for the WAMP protocol.
Boost Software License 1.0
35 stars 9 forks source link

Json::encode does not escape control characters #72

Closed ecorm closed 9 years ago

ecorm commented 9 years ago

Json::encode does not escape control characters. The following escape sequences should be implemented:

image

(Image from http://json.org/)

According to the RFC:

All Unicode characters may be placed within the quotation marks except for the characters that must be escaped: quotation mark, reverse solidus, and the control characters (U+0000 through U+001F).