Skip to content

Unable to print an unquoted YAML #456

Closed Answered by eemeli
FStefanni asked this question in Q&A
Discussion options

You must be logged in to vote

How are you reading the document? It sounds like you're only interested in the data that it contains, rather than its JSON representation, so JSON.parse() would probably be your best choice. Then YAML.stringify() would only be affected by the options that you pass to it, which doesn't seem to be the case in your examples above.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by FStefanni
Comment options

You must be logged in to vote
2 replies
@eemeli
Comment options

@FStefanni
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants