-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Roan Kattouw wrote: | JSON handles "123" vs. 123 just fine. However, YAML has a simple string | format that doesn't require quotes (only works if the string doesn't | contain stuff that has to be escaped), as in: | | foo: bar | baz: 3 | | Because of this, there's no way to tell the string "3" from the integer | 3 because both are encoded exactly the same.
According to the Wikipedia article on YAML, you can quote or explicitly typecast the value to ensure it will be decoded as a string:
"3" !!str 3
- -- brion vibber (brion @ wikimedia.org)