From cda2e6e54fcaad50d0704b060134b2c6c1b30552 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Mon, 2 Jan 2023 16:38:08 +0200 Subject: [PATCH] - Fixed the use of `serializeRecord` and `fromJSON` in README.md serialization/deserialization examples --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ef6e0b2..255394d 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ p1.list = ["1", "2", "3"]; p1.extraJSON = parseJSON(`{"item":1, "items":[1,2,3]}`); p1.eType = EnumType.CAT; -JSONValue serialized = PocketBase.serializeRecord(p1); +JSONValue serialized = serializeRecord(p1); string[] keys = serialized.object().keys(); assert(canFind(keys, "firstname") && cmp(serialized["firstname"].str(), "Tristan") == 0); @@ -81,7 +81,7 @@ JSONValue json = parseJSON(`{ } `); -Person person = PocketBase.fromJSON!(Person)(json); +Person person = fromJSON!(Person)(json); debug(dbg) {