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 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"} ```