Skip to content

Commit 341e415

Browse files
Lenny222marijnh
authored andcommitted
json: to_str() also for "null"
1 parent 6f5a0a3 commit 341e415

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/json.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ fn to_str(j: json) -> str {
6565
});
6666
str::concat(["{ ", str::connect(parts, ", "), " }"])
6767
}
68+
null { "null" }
6869
}
6970
}
7071

0 commit comments

Comments
 (0)