3 ms·
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
by straphka 10y ago
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 :)
https://github.com/yhekma/datamounter https://github.com/yhekma/datamounter
- ekiara 10y agoMy big question is why? you wanted to navigate or display a JSON dataset using filesystem-viewer tools? i.e. "Explore" the JSON dataset?
- straphka 10y agoWell, mostly because I wanted to play with fuse, but it started out as an ansible thing (doesn't work with >2 though). The ansible setup module returns the system information in json, and if you mount it with the --realtime flag, when you open a "file" like ram for instance, ansible fetches the current value for you. That way you have your infrastructure mounted so to speak. Sort of a /proc filesystem for your linux infrastructure. I never got further than a working poc though. It works, but there are some bugs and there is no regard for security.