working on decoders/encoders for json