• tiramichu@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    edit-2
    1 day ago

    My biggest peeve with JSON when I’m forced to use it as a configuration format is that it doesn’t have any syntactical support for comments.

    So I can’t even add any notes to the file.

    • lightnegative@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      16 hours ago

      Yep this for me too. Thankfully VSCode allows comments in its settings.json / launch.json files but most programs use strict JSON which doesn’t allow comments

    • vinnymac@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      edit-2
      23 hours ago

      Yea, this is a deal breaker imo. My code tends to be 10 to 1 comments to lines of code ratio. Configuration even more so.

      jsonc/json5 exists for this use case, but few tools actually use it, yaml is far more popular