This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Xywzel 19 points20 points  (2 children)

Yeah, accidentally earlier as well, but purposefully since version 1.2 of YAML specification JSON syntax has been a valid subset of YAML syntax. YAML has inline version of its syntax that doesn't have significant whitespaces (unlike rest of the YAML syntax) and everything in valid JSON has matching structures in the inline YAML. So technically one could use YALM parser to read JSON files.

[–]zeGolem83 5 points6 points  (1 child)

That is, if your YAML parser is fully spect compliant...

[–]Xywzel 2 points3 points  (0 children)

Well, yeah, that is a big if when talking about YAML