JSON is a file format. Don’t get caught up in that being a requirement for what you want.
You’re looking for a document oriented database. Many exist, use that as your search term instead of JSON.
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
JSON is a file format. Don’t get caught up in that being a requirement for what you want.
You’re looking for a document oriented database. Many exist, use that as your search term instead of JSON.
Yes. It's called a filesystem.
ext4 is a mature tool for this style workflow
Json is for humans, not for storage
Json is for humans, not for storage
JSON is not for humans. If I can't write arbitrary multi-line comments in the text file, it's not for humans.
JSON is, as described by the standard defining it, for computers talking to each other:
JSON is a […] syntax for defining data interchange formats.
If you want a format writable and readable by humans? We deserve better.
Tell that to postgres's json and json. But you're completely correct here, just because you can do something doesn't mean it's a good idea.
In principle, you're looking for a "document-oriented database": https://en.wikipedia.org/wiki/Document-oriented_database
CouchDB is what I usually see recommended as an alternative to MongoDB and might fit your bill (although I haven't worked with it yet): https://couchdb.apache.org/
There's duckdb.
SQLite can do it too, but I've seen a lot of praise for DuckDB recently. The duck is worth trying.
Maybe PostgreSQL with JSON Extension
Jq is a non SQL JSON query language.
Json-ld and sparql?