From 6ef120f7ce23a4c84ab2deeaea8eb471041758ef Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 6 Jul 2022 10:09:21 +0100 Subject: [PATCH] Ensure record ids are escaped properly in JSON format --- lib/src/sql/thing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/sql/thing.rs b/lib/src/sql/thing.rs index ac51ea81..b1dc6be1 100644 --- a/lib/src/sql/thing.rs +++ b/lib/src/sql/thing.rs @@ -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) } }