JSON alternatives (for the purpose of specifying configuration)?

后端 未结 8 2501
悲&欢浪女
悲&欢浪女 2021-02-19 20:31

I like json as a format for configuration files for the software I write. I like that it\'s lightweight, simple, and widely supported. However, I\'m finding that there are some

8条回答
  •  难免孤独
    2021-02-19 21:06

    There is also thindf.

    Although it does not support comments, they can be emulated via empty keys:

    config_var1 = value1
    =some comment
    config_var2 = value2
    

提交回复
热议问题