SuperCollider has a String:parseYAML method that can create a nested Dictionary:
"{44: 'woo'}".parseYAML
Dictionary[ (44 -> woo) ]
But how to go the other way, output a YAML string given a (possibly nested) Dictionary?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
[answer is from someone else outside]
Does the document have to be readable?
I’ve ben using
JSON.stringifyfrom Felix’s API quark In order to share dictionaries with an Max MSP application.The result from this method is not readable, that is, it doesn’t generate any newlines and tabs etc. So it doesn look pretty in a text document, but that’s not the intention with method design I can imagine.