Welcome! Please see the About page for a little more info on how this works.

+1 vote
in data.json by

The following works with clojure.data.json version 1.0.0, but throws an exception in 2.0.2 and 2.1.0 (other versions not tested):

(defn read-json []
  (clojure.data.json/read
   (clojure.java.io/reader
    (clojure.java.io/as-url
     "https://github.com/phronmophobic/clj-cef/raw/main/resources/cef.json"))))

The exception:
Execution error (IOException) at java.io.PushbackReader/unread (PushbackReader.java:179). Pushback buffer overflow`

It also throws the exception when reading from the file locally.

2 Answers

0 votes
by
by
Fix attached to issue
0 votes
by

As a workaround you can do

(clojure.data.json/read-str (slurp  "https://github.com/phronmophobic/clj-cef/raw/main/resources/cef.json"))
by
I'm not blocked on anything since version 1.0.0 works great for me. I just noticed it when I was upgrading a bunch of dependencies.

Thanks for the quick response!
...