From d8922d6b107eb5ef51121420b84b38849dcd8dba Mon Sep 17 00:00:00 2001 From: Stanislav Gryumov <33372067+gryumov@users.noreply.github.com> Date: Thu, 17 Oct 2024 01:06:36 +0300 Subject: [PATCH 1/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c5c322b1..3ea78513 100644 --- a/README.md +++ b/README.md @@ -224,8 +224,8 @@ json = """{"title": "JuliaCon 2024", "start": "2024-07-22"}""" julia> juliacon = deser_json(JuliaCon, json) JuliaCon("JuliaCon 2024", Date("2024-07-22"), Date("2024-07-24")) -julia> to_json(juliacon) -"{\"title\":\"JuliaCon 2024\",\"start_date\":\"2024-07-22\",\"end_date\":\"2024-07-24\"}" +julia> to_json(juliacon) |> print +{"title":"JuliaCon 2024","start_date":"2024-07-22","end_date":"2024-07-24"} ``` ## Contributing From ca176fb9ea1c2ccbdfc2796276c64211d5968954 Mon Sep 17 00:00:00 2001 From: Stanislav Gryumov <33372067+gryumov@users.noreply.github.com> Date: Thu, 17 Oct 2024 01:07:30 +0300 Subject: [PATCH 2/2] Update index.md --- docs/src/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/index.md b/docs/src/index.md index b652943e..ac659ba2 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -220,6 +220,6 @@ json = """{"title": "JuliaCon 2024", "start": "2024-07-22"}""" julia> juliacon = deser_json(JuliaCon, json) JuliaCon("JuliaCon 2024", Date("2024-07-22"), Date("2024-07-24")) -julia> to_json(juliacon) -"{\"title\":\"JuliaCon 2024\",\"start_date\":\"2024-07-22\",\"end_date\":\"2024-07-24\"}" +julia> to_json(juliacon) |> print +{"title":"JuliaCon 2024","start_date":"2024-07-22","end_date":"2024-07-24"} ```