You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
repl=> (clj->cljson (subvec [1234] 02))
IllegalArgumentException No cljson encoding for '[12]'. tailrecursion.cljson/encode (cljson.clj:72)
Looks like clojure.lang.PersistentVector is extended with EncodeTagged, but not clojure.lang.IPersistentVector. In my (extremely rudimentary) testing, making it IPersistentVector instead seems to work fine.
The text was updated successfully, but these errors were encountered:
Trolling around clojure.lang.RT and clojure.lang.APersistentVector$SubVector, it looks like what we want is to add an implementation for instances of clojure.lang.APersistentVector, or possibly check for APersistentVector instead of PersistentVector.
Using IPersistentVector works, but we want to avoid interfaces if we can because they might overlap.
Looks like
clojure.lang.PersistentVector
is extended withEncodeTagged
, but notclojure.lang.IPersistentVector
. In my (extremely rudimentary) testing, making itIPersistentVector
instead seems to work fine.The text was updated successfully, but these errors were encountered: