A conduit middleware to parse JSON into a decodable struct