Consider allowing yaml 1.2.2 next to json/jsonc #29
Fahrzin Hemmati (fahhem)
started this conversation in
Ideas
Replies: 1 comment 1 reply
|
Fahrzin Hemmati (@fahhem) Interesting thought! You could raise a proposal at https://github.com/devcontainers/spec for consideration. Thus far, jsonc has been working, but if this is something the community is interested in, it could get added in. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Any interest?
Background:
jsonc, aka "JSON with comments", while nicer than plain JSON, is still relatively new and doesn't have full ecosystem support yet. It also has some shortcomings shared with JSON, such as not accepting trailing commas in lists/objects (except on a per-parser exception basis).yamlcan be limited to a JSON equivalent in terms of data structures it supports, and all (or at least most) of the issues with it were allayed in 1.2+ versions of the spec (such asonbeing parsed astruewhen not quoted). It also reduces the need for as many quotes, commas, open and close braces, and first-class supports comments.All reactions