Please log in to watch this conference skillscast.
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:
- Well-Typed's Guide to the Haskell Type System (in London on 10th October 2018)
- HaskellX2gether Community Day 2018 (in London on 13th October 2018)
- Well-Typed's Guide to Haskell Performance and Optimization (in London on 15th - 16th October 2018)
- Fast Track to F# with Tomas Petricek & Phil Trelford (in London on 6th - 7th December 2018)
JsonGrammar: combinators for bidirectional JSON conversion
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.