Fixed JSON string escaping to support non-printable characters, made some JSON lib private functions static in the .cpp file instead.

This commit is contained in:
Thulinma 2013-08-28 12:18:22 +02:00
parent f48833343a
commit 2769d3cc6c
2 changed files with 18 additions and 9 deletions

View file

@ -35,10 +35,6 @@ namespace JSON {
std::string strVal;
std::deque<Value> arrVal;
std::map<std::string, Value> objVal;
std::string read_string(int separator, std::istream & fromstream);
static std::string string_escape(const std::string val);
int c2hex(int c);
static void skipToEnd(std::istream & fromstream);
public:
//friends
friend class DTSC::Stream; //for access to strVal