Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
1086,134,2015-05-21T19:16:45Z,10,Email Test.Subject Line Test,{"attributes":{"name":"Device","value":"iPhone"}}
1086,134,2015-05-21T19:16:45Z,10,Email Test.Subject Line Test,{"attributes":{"name":"Device","value":"iPhone"}}
globalMap.put("myCSVWithJSONFile",myCSVFileOrLine);
String newstring = String.replaceAll("\"","\\\"");
Path path = Paths.get("myCSVFileWithJSON");
Charset charset = StandardCharsets.UTF_8;
String content = new String(Files.readAllBytes(path), charset);
content = content.replaceAll("\"", "\\\"");
Files.write(path, content.getBytes(charset));