charred
charred copied to clipboard
zero dependency efficient read/write of json and csv data.
Charred is pretty amazing, thanks so much for making it. One thing I noticed trying to use it is that there is no way (I can see) to distinguish exceptions...
```clojure (csv/read-csv "a,3\"\nb,4\"\nc,5") ;; => (["a" "3\""] ["b" "4\""] ["c" "5"]) (charred/read-csv "a,3\"\nb,4\"\nc,5") ;; => (["a" "3\nb,4"] ["c" "5"]) ``` I find it hard to say which is "right". I...
https://clojure.atlassian.net/browse/DJSON-61 Instead of per-character escape and write - scan string and if nothing is found add entire string in bulk -- else fallback to old method.
Issue to gauge interest in extending this system to parse yaml or edn similar high performance manner. Comment or thumbs up if you think you might use this.
This: ```clojure (charred.api/write-json-str {{:a :b} {:c :d}}) ``` Results in this: ``` Execution error (CharredException) at charred.JSONWriter/writeMap (JSONWriter.java:189). JSON encoding error - Map keys must be strings ``` My expectation...
I am working on a csv reader, which does custom "text->numbers" conversion while it reads tehe rows. (it does this row-by-row) (it converts the text on-the-fly into a tid-text-format, one...
We sometimes encounter this error when reading relatively large JSON files: ``` java.lang.ArrayIndexOutOfBoundsException - Index 1024 out of bounds for length 1024 at charred.JSONReader/readString at JSONReader.java:144 ``` We are using...