I once made something like this to mount json files as a fuse filesystem. It's not maintained and one of my first projects, so the code is somewhat questionable, but it does work.
It basically mounts a dict on a filesystem, the exact opposite of what you want :)
It basically mounts a dict on a filesystem, the exact opposite of what you want :)
https://github.com/yhekma/datamounter