reitit

J 2025-06-16T15:37:39.407209Z

Hi! How extend the muuntaja instance to take into account DateTime from Joda? Currently, I have this kind of error: Joda date/time type org.joda.time.DateTime not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-joda"

✅ 1
J 2025-06-17T07:51:57.578669Z

Done with:

(def custom-muuntaja-instance
  (muuntaja/create
   (assoc-in
    muuntaja/default-options
    [:formats "application/json" :encoder-opts]
    {:encoders {org.joda.time.DateTime (fn [v gen] (.writeString gen (str v)))}})))