3 ms·
Or just use YAML[1]. It's a super set of JSON, includes comments, nicely formatted lists, and is (IMHO) much easier on the eyes. [1]: http://en.wikipedia.org/w
by sehrope 13y ago
Or just use YAML[1]. It's a super set of JSON, includes comments, nicely formatted lists, and is (IMHO) much easier on the eyes.
[1]: http://en.wikipedia.org/wiki/Yaml http://en.wikipedia.org/wiki/Yaml
- RHSeeger 13y agoYAML is not a superset of JSON, it's a totally different format.
- TomasSedovic 13y agoAccording to the spec, YAML 1.2 is: "The primary objective of this revision is to bring YAML into compliance with JSON as an official subset." http://yaml.org/spec/1.2/spec.html http://yaml.org/spec/1.2/spec.html If I understand it correctly, the earlier versions were close but not 100% compatible.
- bct 13y agoIt's both.
- sehrope 13y agoYAML 1.2 is a super set of JSON. Check out the spec itself: http://www.yaml.org/spec/1.2/spec.html#id2759572 http://www.yaml.org/spec/1.2/spec.html#id2759572