JSON alternatives (for the purpose of specifying configuration)?

后端 未结 8 2550
悲&欢浪女
悲&欢浪女 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 20:43

    One important attribute of JSON (probably the most important) is that you can easily "flip" between the string representation and the representation in object form, and the objects used to represent the object form are relatively simple arrays and maps. This is what makes JSON so useful in a networking context.

    The functions you want would conflict with this dual nature of JSON.

提交回复
热议问题