escape backslashes for json files

when using https://www.npmjs.com/packages/karma-fixture I ran into a problem when importing json files which had \r or \n, commit escapes all backslashes and fixes the problem