From 6ed69289a840c4ac6c26a36d9be346ff2b87403e Mon Sep 17 00:00:00 2001 From: Alwin Arrasyid Date: Fri, 19 Aug 2022 23:27:26 +0700 Subject: [PATCH] tutorials: remove unnecessary json.encode (#15464) --- tutorials/building_a_simple_web_blog_with_vweb/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tutorials/building_a_simple_web_blog_with_vweb/README.md b/tutorials/building_a_simple_web_blog_with_vweb/README.md index 05c8698f1..c2a508f91 100644 --- a/tutorials/building_a_simple_web_blog_with_vweb/README.md +++ b/tutorials/building_a_simple_web_blog_with_vweb/README.md @@ -384,12 +384,11 @@ in V is very simple: ```v oksyntax // article.v import vweb -import json ['/articles'; get] pub fn (mut app App) articles() vweb.Result { articles := app.find_all_articles() - return app.json(json.encode(articles)) + return app.json(articles) } ``` -- 2.39.GIT