From cf3fd26823f58ad484a7ddbf3632766f85570ffe Mon Sep 17 00:00:00 2001 From: Ary Borenszweig Date: Tue, 16 Jul 2019 09:02:26 -0300 Subject: [PATCH] Append chars instead of strings --- src/json/token.cr | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/json/token.cr b/src/json/token.cr index c05b4283797b..8a4ba0c43321 100644 --- a/src/json/token.cr +++ b/src/json/token.cr @@ -82,17 +82,17 @@ class JSON::Token when .string? string_value.to_s(io) when .begin_array? - io << "[" + io << '[' when .end_array? - io << "]" + io << ']' when .begin_object? - io << "{" + io << '{' when .end_object? - io << "}" + io << '}' when .colon? - io << ":" + io << ':' when .comma? - io << "," + io << ',' when .eof? io << "" else