Estoy tratando de entender cómo identificar la columna 26 de este mensaje de error
Error de sintaxis no capturado: JSON.parse: se esperaba ',' o '}' después del valor de la propiedad en el objeto en la línea 1, columna 26 de los datos JSON.
Este mensaje se deriva del siguiente código
var notedata = JSON.parse('{"results":"<p><img src=\"https:\/\/helpx.adobe.com\/content\/dam\/help\/en\/photoshop\/using\/convert-color-image-black-white\/jcr_content\/main-pars\/before_and_after\/image-before\/Landscape-Color.jpg\" alt=\"Image test\" width=\"702\" height=\"291\"><\/p>\n<p>This is spaghetti. I now have a working bloke section that looks and works better than my previous one. Update3<\/p>"}');¿Qué quieren decir con columna y cómo determino dónde comienza y termina una columna?
En este contexto, la columna se lee como carácter.
Necesitas escapar de tu \ con un doble \\
var notedata = JSON.parse('{"results":"<p><img src=\\"https:\/\/helpx.adobe.com\/content\/dam\/help\/en\/photoshop\/using\/convert-color-image-black-white\/jcr_content\/main-pars\/before_and_after\/image-before\/Landscape-Color.jpg\\" alt=\\"Image test\\" width=\\"702\\" height=\\"291\\"><\/p>\\n<p>This is spaghetti. I now have a working bloke section that looks and works better than my previous one. Update3<\/p>"}'); console.log(notedata);