this post was submitted on 29 Nov 2026
16 points (68.2% liked)

Programming

29437 readers
197 users here now

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

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS
 

Say you wanted a database inside a huge distributed JSON file that scaled vertically.

So that get("users.jane33"), pulls Jane33's profile.

Are there any specs for that? I've seen MongoDB, but no longer like its license.

I'm thinking a DHT with pointers, and raw data blobs. But would like to see what's already working.

top 32 comments
sorted by: hot top controversial new old
[–] locuester@lemmy.zip 6 points 3 hours ago

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.

[–] badmin@lemmy.today 9 points 19 hours ago

Yes. It's called a filesystem.

[–] lntl@lemmy.sdf.org 7 points 18 hours ago

ext4 is a mature tool for this style workflow

[–] bananabread@lemmy.zip 7 points 19 hours ago (2 children)

Json is for humans, not for storage

[–] bignose@programming.dev 5 points 10 hours ago* (last edited 7 hours ago)

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.

[–] IMALlama@lemmy.world 2 points 10 hours ago

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.

[–] Ephera@lemmy.ml 14 points 23 hours ago

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/

[–] ViatorOmnium@piefed.social 12 points 1 day ago* (last edited 1 day ago) (2 children)
[–] one_old_coder@piefed.social 2 points 1 day ago

SQLite can do it too, but I've seen a lot of praise for DuckDB recently. The duck is worth trying.

[–] r4mp@lemmy.zip 11 points 1 day ago

Maybe PostgreSQL with JSON Extension

[–] wet_bones@lemmy.4d2.org 6 points 1 day ago (1 children)

Jq is a non SQL JSON query language.

[–] practisevoodoo@lemmy.world 1 points 18 hours ago

Json-ld and sparql?