Tengo un string dentro de un diccionario que estoy intentando pasar a jsonstring pero no me esta quitando las contrabarras y el servidor no se lo traga.
¿Alguna idea? El código es el siguiente:
let myBod = "\"Body\": {" +
"\"type\": \"multipart\"," +
"\"content\": [" +
"{" +
"\"contentType\": \"multipart/alternative; Boundary=\\\"0__=4EBB0A76DFCD51048f9e8a93df938690918c4EBB0A76DFCD5104\\\"\"," +
"\"contentDisposition\": \"inline\"" +
" }," +
"{" +
"\"contentType\": \"text/plain; charset=US-ASCII\"," +
"\"data\": \"yappy\"," +
"\"boundary\": \"--0__=4EBB0A76DFCD51048f9e8a93df938690918c4EBB0A76DFCD5104\"" +
" }," +
" {" +
"\"contentType\": \"text/html; charset=US-ASCII\"," +
"\"contentDisposition\": \"inline\"," +
"\"data\": \"<html><body>yappy</body></html>\"," +
"\"boundary\": \"--0__=4EBB0A76DFCD51048f9e8a93df938690918c4EBB0A76DFCD5104\"}]}"