It is currently not possible to use EctoSQLite3 configured to use the JSON module which was added in Elixir 1.18 because it does not define an encode function, only encode! / encode_to_iodata!.
As of right now, I'm not sure if this is an issue that should be fixed in Elixir itself or in EctoSQLite3.