by angryzor · 3y ago · 0 comments
- yaml:
- '01'
- '08'
Complaining about this is like complaining that { json: [01, 08] }
will be interpreted as [1, 8] in json... It's not a problem with the tool, it's a user error.The JSON format avoids this problem because it requires that all strings be quoted. If you start with `["09", "08"]` and change one of the digits inside the quotes, the string will stay a string. In JSON, strings becoming not-strings – removal of quotes or addition of backslash escaping – is more obvious than in YAML.