reitit

2024-03-01T17:19:50.430739Z

With muuntaja, is there an easy way to intercept values serialization? For example, I have records that I'd like to convert to simple maps. Currently I walk over everything and do #(into {} %) when I find a matching record type, but that's incredibly inefficient.

2024-03-01T18:07:09.130369Z

For transit I think I found a good solution:

{:handlers {my-record-type (new WriteHandlers$MapWriteHandler)}}

2024-03-01T18:11:34.391609Z

Oh and it looks like the json is already encoded as a simple map if the record doesn't have a particular encoder defined. Perfect! Now the application/edn part 😅