Saving Dictionaries (as .yaml?)

If it’s only about keeping the keys as symbols, you could try the JSONlib quark, which by default converts the JSON object to an Event with symbols as keys.

Another option and a more readable and editable alternative to read/writeArchive is to save the compileString of the dictionary in a file:

File.use(path, "w", { |f| f.write(dict.asCompileString)})

2 Likes