Transit

Transit[35] is a relative newcomer to the world of data interchange, thoughtfully developed to solve a problem many have wrestled with: how to communicate extensible typed values cleanly and quickly regardless of language. With its release came several implementations (Clojure, ClojureScript, Java, JavaScript, Ruby, and Python), and more have been developed subsequently.

Fundamentally, Transit is an extensible metaformat that sits atop either JSON or MessagePack, and a collection of client libraries that handle the translation of Transit-encoded typed values into language-native values. We’ll be using transit-clj,[36] since we’re working in Clojure.

Transit data has a verbose form that’s somewhat human-readable and compact forms that ...

Get Clojure Applied now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.