Skip to content

Commit

Permalink
Fix reading keys
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Jan 30, 2024
1 parent 296a8f4 commit 38d7c41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/babashka/json.clj
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@

(defn ->json-reader
([x] (->json-reader x nil))
([x _opts]
(internal->json-reader x)))
([x opts]
(internal->json-reader x opts)))

(defn get-provider
"Returns which library currently provides the JSON implementation."
Expand Down
2 changes: 1 addition & 1 deletion src/babashka/json/internal/cheshire.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
([reader {:keys [key-fn]}]
(cheshire/parse-stream reader (or key-fn keyword))))

(def fns ['cheshire/cheshire read-str write-str identity read])
(def fns ['cheshire/cheshire read-str write-str (fn [x & _whatever] x) read])

0 comments on commit 38d7c41

Please sign in to comment.