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:
- LDNUG September 2017 - #ProgNET Special with Richard Campbell (in London on 12th September 2017)
- Progressive .NET 2017 (in London on 13th - 15th September 2017)
- Fast Track to F# with Tomas Petricek & Phil Trelford (in London on 16th - 17th October 2017)
- Test Driven Development (TDD) Workshop with Damjan Vujnovic (in London on 7th - 8th December 2017)
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.