Closed spacegangster closed 2 years ago
When reading transit-clj encoded output like "[\"^ \",\"~:id\",\"~n61583\"]" I'm getting {:id #object[Transit$TaggedValue [TaggedValue: n 61583]]}
"[\"^ \",\"~:id\",\"~n61583\"]"
{:id #object[Transit$TaggedValue [TaggedValue: n 61583]]}
I would like to have that as a plain JS Integer. Not critical at all, my current workaround is that I cast BigInt to Long on Clojure side.
Transit cljs version [com.cognitect/transit-cljs "0.8.256"]
[com.cognitect/transit-cljs "0.8.256"]
Transit clj version [com.cognitect/transit-clj "1.0.324"]
[com.cognitect/transit-clj "1.0.324"]
Cheers!
@spacegangster thanks for the report, the README was just wrong, in JS we don't have a Big Decimal or Big Integer type available. These default to tagged values.
When reading transit-clj encoded output like
"[\"^ \",\"~:id\",\"~n61583\"]"
I'm getting{:id #object[Transit$TaggedValue [TaggedValue: n 61583]]}
I would like to have that as a plain JS Integer. Not critical at all, my current workaround is that I cast BigInt to Long on Clojure side.
Transit cljs version
[com.cognitect/transit-cljs "0.8.256"]
Transit clj version
[com.cognitect/transit-clj "1.0.324"]
Cheers!