I use Phoenix to pass messages from paracusia in backend to vue in frontend. There are a few custom types in paracusia which cannot be encoded in JSON. Would it be possible to add something like '@derive Jason.Encoder' in from of 'defstruct' so that they can be encoded in JSON format ?
The custom type I found are:
PlayerState
PlayerState.Status
MpdClient.AudioOutputs
PlayerState.Stats
I use Phoenix to pass messages from paracusia in backend to vue in frontend. There are a few custom types in paracusia which cannot be encoded in JSON. Would it be possible to add something like '@derive Jason.Encoder' in from of 'defstruct' so that they can be encoded in JSON format ?
The custom type I found are: PlayerState PlayerState.Status MpdClient.AudioOutputs PlayerState.Stats