Funny you made this
thread because i just did this yesterday. I cut circles out of some stainless mesh screen and use them with mason jar bands. The salt i make is never completely dry so i use these and put them in the cupboard. Mesh is small enough to keep bugs out. I currently have them on salt, jerky, dehydrated persimmons, and some cranberry fruit roll ups i made. Stuff that normally might go in a paper bag vs being airtite.....
Even skipping the lid completely and tie a cloth on the jar as a lid should work. Also look into sprouting lids for mason jars. They are basically what i made, but a bigger mesh. I use those as a salt shaker on a mason jar.