Skip to content

Commit

Permalink
fix jsonista
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Jan 30, 2024
1 parent 36d18ea commit 537f97f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/babashka/json/internal/jsonista.clj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@

(defn write-str
([s] (write-str s nil))
([s _opts] (json/write-value-as-string s (-key-fn->object-mapper nil))))
([s {:keys [key-fn] :or {key-fn keyword}}] (json/write-value-as-string s (-key-fn->object-mapper key-fn))))

(def fns ['metosin/jsonista read-str write-str ->json-reader read])

0 comments on commit 537f97f

Please sign in to comment.