Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing json with local-date fails #410

Open
genmeblog opened this issue Jun 25, 2024 · 0 comments
Open

Parsing json with local-date fails #410

genmeblog opened this issue Jun 25, 2024 · 0 comments

Comments

@genmeblog
Copy link

(spit "test.json" "[
	{\"test\": 1, \"time-period\": \"2024-06-20\"},
	{\"test\": 2, \"time-period\": \"2024-06-21\"},
	{\"test\": 3, \"time-period\": \"2024-06-22\"}]")

(tech.v3.dataset/->dataset "test.json" {:key-fn keyword :parser-fn {:time-period :local-date}})

The exception:

1. Unhandled clojure.lang.ArityException
   Wrong number of args (0) passed to: clojure.lang.PersistentArrayMap

                  AFn.java:  429  clojure.lang.AFn/throwArity
                  AFn.java:   28  clojure.lang.AFn/invoke
                   api.clj:  508  charred.api/json-reader-fn/fn
                   api.clj:  606  charred.api/read-json-supplier
                   api.clj:  560  charred.api/read-json-supplier
               RestFn.java:  426  clojure.lang.RestFn/invoke
                   api.clj:  618  charred.api/read-json
                   api.clj:  614  charred.api/read-json
               RestFn.java:  142  clojure.lang.RestFn/applyTo
                  core.clj:  669  clojure.core/apply
                  core.clj:  662  clojure.core/apply
                    io.clj:   66  tech.v3.dataset.io/eval47389/fn
              MultiFn.java:  234  clojure.lang.MultiFn/invoke
                    io.clj:  239  tech.v3.dataset.io/->dataset
                    io.clj:  111  tech.v3.dataset.io/->dataset
               dataset.clj:  125  tech.v3.dataset/->dataset
               dataset.clj:   22  tech.v3.dataset/->dataset

original issue: scicloj/tablecloth#157

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant