WORKED CASE · SYNTHETIC TEST DATA
Keep a configuration identifier as text
A numeric-looking code can have significant leading zeros. Quoting it in the source avoids turning the identifier into a number.
Input and settings
code: "0012"
enabled: falseRun and interpret
Paste the sample and convert to JSON. The code must remain quoted with both leading zeros; enabled must remain an unquoted boolean.
Expected output
"code": "0012"
"enabled": falseScope and possible misuse
This uses YAML core-schema values. Comments are discarded and date-like text stays a string. Unsafe integers and cyclic aliases are rejected rather than silently coerced.