As discussed with @anmonteiro, it would be cool to have some way to integrate JSON into the Piaf client. Antonio proposed the notion of a middleware on the frontend. Another option would be simply to provide some functor interface to instantiate.