Merge pull request #5118 from xackus/fix-json-writestream

fix json.WriteStream.emitJson
This commit is contained in:
Vexu
2020-05-12 17:44:06 +03:00
committed by GitHub
2 changed files with 38 additions and 27 deletions

View File

@@ -2194,7 +2194,7 @@ test "write json then parse it" {
try jw.emitBool(true);
try jw.objectField("int");
try jw.emitNumber(@as(i32, 1234));
try jw.emitNumber(1234);
try jw.objectField("array");
try jw.beginArray();
@@ -2203,7 +2203,7 @@ test "write json then parse it" {
try jw.emitNull();
try jw.arrayElem();
try jw.emitNumber(@as(f64, 12.34));
try jw.emitNumber(12.34);
try jw.endArray();