diff --git a/tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.v b/tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.v index b670c31e89..823567cfde 100644 --- a/tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.v +++ b/tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.v @@ -74,7 +74,8 @@ pub fn (mut app App) new_article() vweb.Result { ['/articles'; get] pub fn (mut app App) articles() vweb.Result { articles := app.find_all_articles() - return app.json(json.encode(articles)) + json_result := json.encode(articles) + return app.json(json_result) } fn (mut app App) time() {