Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

196
Views
¿Cómo determino dónde está una columna como se define en este mensaje de error JSON?

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?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

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);

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!