How do I prevent this from evaluating when writing it out to a file?
data = {
"key1" -> Foo /@ {"val11", "val12"},
"key2" -> Foo /@ {"val21", "val22"},
...
}
After processing data (changing "val**" in some way), I'd like to write it to file while preserving the form "Foo /@ ". It writes it out in the evaluated form:
{Foo["val11"], Foo["val12"]}
I usually use
ToString[expression, InputForm, CharacterEncoding -> "ASCII"]
and WriteString[] to write expressions to file. But this breaks the "Foo /@ ".
Any suggestions?