JavaScript : How to escape a JSON string containing newline characters using JavaScript?

Published --