From 90ae5fb543660a4a29759fef5ce8fd8a2d5e878f Mon Sep 17 00:00:00 2001 From: pantor Date: Tue, 15 Aug 2017 22:46:26 +0200 Subject: [PATCH] fix json to string conversion error in visual studio --- src/inja.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inja.hpp b/src/inja.hpp index 6dbabdc..8331e51 100644 --- a/src/inja.hpp +++ b/src/inja.hpp @@ -461,7 +461,7 @@ public: for (auto element: input) { switch ( static_cast(element["type"]) ) { case Parser::Type::String: { - result += element["text"]; + result += render_json(element["text"]); break; } case Parser::Type::Variable: {