From 74a90bb5786f808a61962beac0c0d32680bc955e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ma=C3=ABl=20M=C3=A9liani?= <m.meliani@neogeo-online.net>
Date: Fri, 18 Oct 2013 14:06:38 +0200
Subject: [PATCH] Fixed bug about json renderer.

---
 src/webapp.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/webapp.py b/src/webapp.py
index 3b13ad1..ffc3318 100644
--- a/src/webapp.py
+++ b/src/webapp.py
@@ -274,7 +274,7 @@ def default_renderer(format, authorized, content, name_hint):
         render = web.template.render(templates)
         return render.response(web.ctx.home, web.ctx.path.split("/"), urls, pyhtml.dumps(content, obj_name=name_hint, indent=4))
     elif format == "json":
-        return json.dumps(content)
+        return json.dumps({name_hint:content})
     else:
         return str(content)
 
-- 
GitLab