lib/json/serialization: fix serialization of first attribute
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 18 Nov 2016 22:53:05 +0000 (17:53 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Mon, 13 Feb 2017 02:53:55 +0000 (21:53 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

lib/json/serialization_write.nit

index 43987e8..c4aecf0 100644 (file)
@@ -99,8 +99,8 @@ class JsonSerializer
        do
                if not plain_json or not first_attribute then
                        stream.write ","
-                       first_attribute = false
                end
+               first_attribute = false
 
                new_line_and_indent
                stream.write "\""