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
Jsonista has a good and fast api for reading and writing JSON. One can ask directly for JSON byte-array out of Clojure data - Jackson has optimized path just for this. With Muuntaja, one is forced to generate InputStream, which much slower, no benefits from NIO for example.
So, a new unified api, maybe directly from Jsonista:
(defdata {:kikka"kukka"})
;; JSON
(m/write-value-as-string m "application/json" data)
(m/write-value-as-bytes m "application/json" data)
(m/write-value m "application/json" (File."kikka.json") data)
(m/read-value m "application/json" (File."kikka.json"))
;; EDN
(m/write-value-as-string m "application/edn" data)
(m/write-value-as-bytes m "application/edn" data)
(m/write-value m "application/edn" (File."kikka.json") data)
(m/read-value m "application/edn" (File."kikka.json"))
The text was updated successfully, but these errors were encountered:
Jsonista has a good and fast api for reading and writing JSON. One can ask directly for JSON
byte-array
out of Clojure data - Jackson has optimized path just for this. With Muuntaja, one is forced to generateInputStream
, which much slower, no benefits from NIO for example.So, a new unified api, maybe directly from Jsonista:
The text was updated successfully, but these errors were encountered: