Basically, you can store everything. Quotations are not a problem, you can enter text without quotes (and for non-printable characters that you cannot include by accident, there are regular escape sequences). This means that purely numeric text is considered a number, but again, you can add quotation marks or an explicit type annotation (and I assume most libraries do this when necessary), for example. !!str 100 . Also, if you want to include the comment sign ( # ), you need to add quotation marks.
Another problem is that some lines may look like more complex YAMLs (for example, some uses of exclamation points look like casts, and some uses of colons look like singleton associative tables). They can be avoided by using "multi-line" lines, which consist of only one line. Multiline lines exist and are presented in two versions, preserving line breaks ( --- | ) and ignoring new lines, with the exception of empty lines ( --- > , like markdown).
source share