Fork me on GitHub

Hello everybody, just release a new library called edn-json ( This library provides a way to encode EDN data to JSON, similar to clj->js, but does it in a way that allows restauration of the EDN types on the conversion back (keywords, symbols, uuids, etc...). The intended application is to be able to store data from EDN in JSON document stores (like MongoDB, IndexedDB...) in a way that keeps them efficient (leveraging the structure) while enable the data to be converted back to it's original form. More details on the README.

❤️ 24
👍 64
👏 8

Is this similar to transit?


For transit, they specifically caution against storing the results, while this one encourages it @U6SN41SJC


Ah, makes sense. So they are complimentary? Or would you say edn-json is a super set of the functionality that transit provides?


Yea, complementary, I think. It sounds like it would still make sense to use transit for transport, and this for anything durable (or if you need other JS-like tools to be able to interact with it easily)


I believe that transit no longer discourages you from using it to store results - they updated the readme after having no breaking changes for a few years.

✔️ 4

I think the distinction is, transit uses json as a storage/transmission medium, but edn-json actually translates to json


the json transit produces is good for ensuring faithful round-trips in and out of edn types, but it’s not good for consuming as json


edn-json gives up some round-tripability to get something that a native json environment could consume comfortably

☝️ 8

FYI - a typo in the README:

(= (edn->json #uuid "") "__edn-value|#uuid foo/symb")


thanks, fixed


Hello guys, I just released a new library for working with Microsoft Exchange. It's built on top of ews-java-api so it simplifies communication with Exchange a lot. Any suggestions or PRs are very welcomed 🙂

👍 24

New release for deps-try - Quickly try out dependencies on rebel-readline. Updates: - rebel-readline now pprints return values (thanks to @dominicm) - invoke without dep Get Started

$ clojure -A:try clj-time
user=> (require '[clj-time.core :as t])
user=> (t/now)
;; add additional dependencies
user=> :repl/try tick

👍 32

How is deps-try better than using -Sdeps? It's a bit less verbose (assuming deps-try is added in the user's clj config), but is there something I'm missing?


It's indeed similar to (but way easier than) clojure -A:rebel -Sdeps '{:deps {foo {:mvn/version "RELEASE"} some-other {:mvn/version "RELEASE"}}}'. Additionally deps-try allows to add dependencies once the repl is running via :repl/try other-dep.


Ah, I can see that you use - that's what I do myself. :) Nice!