Gsub replacing \\n with \n

You can take a look at this topic, I had a similar issue with backslashes and the workaround is a bit ugly Parse nested key-values