json: to_str() also for "null"

This commit is contained in:
Lenny222 2011-12-21 22:21:11 +01:00 committed by Marijn Haverbeke
parent 6f5a0a3b3b
commit 341e4151d6

View File

@ -65,6 +65,7 @@ fn to_str(j: json) -> str {
}); });
str::concat(["{ ", str::connect(parts, ", "), " }"]) str::concat(["{ ", str::connect(parts, ", "), " }"])
} }
null { "null" }
} }
} }