impl ToJson for all Encodables