Skip to content

Can't encode SubVector #12

@catharinejm

Description

@catharinejm
repl=> (clj->cljson (subvec [1 2 3 4] 0 2))
IllegalArgumentException No cljson encoding for '[1 2]'.  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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions