this post was submitted on 01 Feb 2024
50 points (100.0% liked)

Programming

20027 readers
259 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 [email protected]



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 9 points 1 year ago (14 children)

Where do you put your comments in JSON files?

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (10 children)

I've seen them included as part of the data.

"//": "Comment goes here",

Example here.

[–] [email protected] 4 points 1 year ago (9 children)

That doesn't really work when you need two comments at the same level, since they'd both have the same key

[–] [email protected] 2 points 1 year ago

It still works since multiple identical keys are still valid json. Although that in itself isn't fantastic imo.

load more comments (8 replies)
load more comments (8 replies)
load more comments (11 replies)