Ensure record ids are escaped properly in JSON format

This commit is contained in:
Tobie Morgan Hitchcock 2022-07-06 10:09:21 +01:00
parent 073c15b826
commit 6ef120f7ce

View file

@ -69,7 +69,7 @@ impl Serialize for Thing {
val.serialize_field("id", &self.id)?;
val.end()
} else {
let output = format!("{}:{}", self.tb, self.id);
let output = self.to_string();
serializer.serialize_some(&output)
}
}