Example: <img width="669" alt="image" src="https://github.com/fjl/gencodec/assets/93690142/eb384b3e-6b74-4205-b758-e4c777197c0d"> <img width="272" alt="image" src="https://github.com/fjl/gencodec/assets/93690142/152b2ed2-8842-4dac-ace9-65606502f281"> <img width="431" alt="image" src="https://github.com/fjl/gencodec/assets/93690142/f75fa1b6-4df9-4258-be21-d934b17f96d5"> IMO if the generic is constrained to support json marshal and unmarshal the generator should be able to handle it