json: to_str() also for "null"
This commit is contained in:
parent
6f5a0a3b3b
commit
341e4151d6
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ fn to_str(j: json) -> str {
|
|||
});
|
||||
str::concat(["{ ", str::connect(parts, ", "), " }"])
|
||||
}
|
||||
null { "null" }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue