http://www.perlmonks.org?node_id=749224


in reply to Re: Human readable/writable serialization alternatives to YAML and XML ?
in thread Human readable/writable serialization alternatives to YAML and XML ?

As for JSON being more readable, JSON is actually a subset of YAML - anything that is valid JSON is valid YAML as well (but not the other way around).

Just for the sake of correctness: JSON is not a 100% subset of YAML. The author of the JSON::XS module researched that topic: http://search.cpan.org/~mlehmann/JSON-XS-2.232/XS.pm#JSON_and_YAML

  • Comment on Re^2: Human readable/writable serialization alternatives to YAML and XML ?

Replies are listed 'Best First'.
Re^3: Human readable/writable serialization alternatives to YAML and XML ?
by JavaFan (Canon) on Mar 09, 2009 at 10:29 UTC
    And the author of YAML told on a recent conference that there indeed was a slight difference between JSON and YAML, and that the YAML specification was recently relaxed to make JSON a proper subset of YAML.
      AFAIK there are currently no parsers that support JSON as yml.