It is clear why I would not want to do this. But I have little choice in the matter.
Will browsers be able to handle this?
Chrome seems to be okay with it:
> var x = {};
> x['a\nb'] = 1;
1
> x
Object
a b: 1
__proto__: Object
> Object.keys(x)
["a
b"]