I want to return PID as a response of a request.
But json format does not support PID…
protocol Jason.Encoder not implemented for #PID<0.691.0> of type PID, Jason.Encoder protocol must always be explicitly implemented. This protocol is implemented for the following type(s): Ecto.Association.NotLoaded, Ecto.Schema.Metadata, Any, Atom, BitString, Date, DateTime, Decimal, Float, Integer, Jason.Fragment, List, Map, NaiveDateTime, Time
How do you return it or convert PID to something available in json?