Welcome! Please see the About page for a little more info on how this works.

+1 vote
in Clojure by

Hi all,

Looking for the most idiomatic way to transform some json (retrieved from an http get) into a sequence of "typed" data, with dates as string converted into dates, etc.

I know I could do it manually, map the json array and parse/convert based on property names, but I'm wondering if there's a library that I could use that could do that automatically based on some kind of schema that I'd provide.


1 Answer

+1 vote

Haven't tried it with JSON yet, but the latest hotness in Schema-land is a relatively new library named Malli, they do have a heading suggesting they are interested in your problem (see: "To and from JSON" - https://github.com/metosin/malli#value-transformation).