And I’ll show you YAML

(a continuation of this post)

  • frezik
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    JSON models data, it’s not markup language for writing config files.

    JavaScript package management promptly said otherwise. JSON is a config format no matter if you like it or not.

    • Kogasa@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I’ve disagreed with JavaScript before, what makes you think I won’t do it again?

      Anyway, anything using JSON as a config language will also certainly use a JSON interpreter that can ignore comments. Sure that’s “implementation specific,” but so is a config file. You wouldn’t use “MyApplication.config.json” outside the context of MyApplication loading its own configuration, so there’s no need for it to be strictly compliant JSON as long as it plays nicely with most text editors.