Lbh1u8srh3czqrlsmio0
SkillsCast

JsonGrammar: combinators for bidirectional JSON conversion

8th October 2015 in London at CodeNode

There are 34 other SkillsCasts available from Haskell eXchange 2015

Please log in to watch this conference skillscast.

538990640 640

JsonGrammar is a combinator library for expressing bidrectional transformations between JSON expression trees (we use Aeson's Value datatype) and your own custom Haskell datatypes. Instead of writing separate fromJSON and toJSON functions, you write a single expression (a grammar) that expresses the conversions in both directions. You have full control over the mapping; for example, the property names in JSON and the Haskell record field names don't have to be the same, and the trees don't even have to be the same shape. This lightning talk will explain the building blocks of the API and how to combine them into full-fledged parsers/formatters.

Find out more about JsonGrammar here.

Join us at the Haskell eXchange in 2016!

Want to learn about the latest innovations in Haskell? Join 200+ Haskell and functional programmers to learn and share skills with some of the world's top Haskell experts at the Haskell eXchange 2016 in London. Find out all about Haskell's infrastructure roadmap, learn how Haskell is used in academia and enterprise and discover how Haskell is changing the way our industry tackles complex engineering problems. Early bird tickets already available!

YOU MAY ALSO LIKE:

Thanks to our sponsors

JsonGrammar: combinators for bidirectional JSON conversion

Martijn van Steenbergen

Martijn has a masters degree in Software Technology from Utrecht University, where Haskell was the go-to language for the research tools. He was involved in the founding of the Dutch Haskell Users Group, where he has given several talks. He is now based in London where he works for Google.