this post was submitted on 01 Feb 2024
43 points (86.4% liked)

Programming

17433 readers
227 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 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] spartanatreyu@programming.dev 9 points 9 months ago (14 children)

Where do you put your comments in JSON files?

[–] Quetzalcutlass@lemmy.world 4 points 9 months ago* (last edited 9 months ago) (10 children)

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

"//": "Comment goes here",

Example here.

[–] spartanatreyu@programming.dev 3 points 9 months 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

[–] catfish@lemmy.ml 2 points 9 months 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)