From d4acb779ced191bfa5c27e516a37a631b2b81bd2 Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 29 Aug 2012 06:35:13 +0000 Subject: [PATCH] *Core: Json now properly escpes key strings git-svn-id: svn://ultimatepp.org/upp/trunk@5297 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/JSON.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/Core/JSON.h b/uppsrc/Core/JSON.h index 0253367f2..68b1b0ca9 100644 --- a/uppsrc/Core/JSON.h +++ b/uppsrc/Core/JSON.h @@ -19,7 +19,7 @@ class Json { Json& CatRaw(const char *key, const String& val) { if(text.GetCount()) text << ','; - text << '\"' << key << "\":" << val; + text << AsJSON(key) << ":" << val; return *this; }