diff --git a/src/value/ser.rs b/src/value/ser.rs index d1f5387d3..a68193437 100644 --- a/src/value/ser.rs +++ b/src/value/ser.rs @@ -486,7 +486,7 @@ impl serde::Serializer for MapKeySerializer { } fn serialize_bool(self, value: bool) -> Result { - Ok(value.to_string()) + Ok(if value { "true" } else { "false" }.to_owned()) } fn serialize_i8(self, value: i8) -> Result {