On Thu, 4 Feb 2010, Wimpie Nortje wrote:



      JSON is not related to YAML at all except in that it is a simple data 
format.

That's true, but from the yaml v1.2 spec:
"YAML can therefore be viewed as a natural superset of JSON, offering improved 
human readability and a more complete information model. This is also the case in
practice; every JSON file is also a valid YAML file."

That's marketing speak. I find YAML totally unreadable :-)

The advantage of JSON is that a webbrowser parses it natively, and therefor is very fast. This is clearly not the case for YAML.

      And as far as I can see from the specs, YAML also does not offer a direct 
way
      to capture binary data.

That is also true. I got the impression from wikipedia that YAML has a direct 
way to capture the binary data. From the specs I see that YAML uses base64 
coding for
binary data, which was what I hoped to prevent because it causes a lot of 
computation overhead.

Since they are text formats, this is simply impossible, I fear :(

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to