From 341e4151d6721d53be1408a2ab4cf8198ea8c9be Mon Sep 17 00:00:00 2001 From: Lenny222 Date: Wed, 21 Dec 2011 22:21:11 +0100 Subject: [PATCH] json: to_str() also for "null" --- src/libstd/json.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libstd/json.rs b/src/libstd/json.rs index 2adfbca70cf..64ce2794bb4 100644 --- a/src/libstd/json.rs +++ b/src/libstd/json.rs @@ -65,6 +65,7 @@ fn to_str(j: json) -> str { }); str::concat(["{ ", str::connect(parts, ", "), " }"]) } + null { "null" } } }