From cd788be904b5b3d73fe131e38563255c411593ce Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 18 Apr 2012 07:34:01 +0000 Subject: [PATCH] *Core: Fixed Jsonize of ValueMap git-svn-id: svn://ultimatepp.org/upp/trunk@4803 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/JSON.cpp | 1 + uppsrc/Core/JSON.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/uppsrc/Core/JSON.cpp b/uppsrc/Core/JSON.cpp index 178745fa9..7c9d15fdd 100644 --- a/uppsrc/Core/JSON.cpp +++ b/uppsrc/Core/JSON.cpp @@ -114,6 +114,7 @@ String AsJSON(const Value& v, const String& sep, bool pretty) return AsCString((String)v); if(IsNull(v)) return "null"; + DDUMP(v); NEVER(); return "null"; } diff --git a/uppsrc/Core/JSON.h b/uppsrc/Core/JSON.h index 63ae408fd..e69b970ec 100644 --- a/uppsrc/Core/JSON.h +++ b/uppsrc/Core/JSON.h @@ -250,7 +250,7 @@ void JsonizeMap(JsonIO& io, T& map, const char *keyid, const char *valueid) template void Jsonize(JsonIO& io, VectorMap& map) { - JsonizeMap(io, map, "key", "value"); + JsonizeMap, K, V>(io, map, "key", "value"); } template