transit

borkdude 2023-05-02T14:10:26.792339Z

I spotted a transit question here: https://stackoverflow.com/questions/76155457/clojure-transit-serializing-nested-metadata

borkdude 2023-05-02T14:10:35.511959Z

cc @mojo

souenzzo 2023-05-02T14:26:34.280139Z

Seems that it works out-of-the-box

(let [baos (ByteArrayOutputStream.)]
  (t/write (t/writer baos :json {:transform t/write-meta})
    (with-meta {:hello "world"}
      (with-meta {:hey 42}
        {:you 42})))
  (.flush baos)
  (t/read (t/reader (io/input-stream (.toByteArray baos)) :json)))

borkdude 2023-05-02T14:33:49.878099Z

Thanks for replying

judepayne 2023-05-02T14:55:25.182379Z

Thanks both!

judepayne 2023-05-02T14:10:38.474959Z

@mojo has joined the channel