I have a struct which already has @derive Jason.Encoder
but some fields in that struct are tuples, and for this reason cannot encode the struct, how can I fix that :/
UPDATE
I have used the approach that mentioned below with implementing a protocol. One important thing to note about this approach is that it will change the encoding for the whole project, just be careful with that !