-----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)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iEYEARECAAYFAkfZkNMACgkQwRnhpk1wk45ZggCaA6VEU9/6W+xncMwgf+LWVbl4
FVkAoMp0T1PKqB9X93NamFke1aew6waw
=O3vZ
-----END PGP SIGNATURE-----