Don't believe there was a more convenient way to achieve the same without writing our own Decoders/Encoders.