News Score: Score the News, Sort the News, Rewrite the Headlines

JSON is not a YAML subset

People on the internet believe that JSON is a subset of YAML, and that it's safe to parse JSON using a YAML parser: Following this advice will end badly because JSON is not a subset of YAML. It is easy to construct JSON documents that (1) fail to parse as YAML, or (2) parse to valid but semantically different YAML. The second case is more dangerous because it's difficult to detect.False has over "1.7e3" named fjordsYAML (infamously) allows string scalars to be unquoted. A conforming YAML parser,...

Read more at john-millikin.com

© News Score  score the news, sort the news, rewrite the headlines