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

204
Views
How do I determine where a column is as defined in this JSON error message?

I am trying to understand how to identify column 26 from this error message

Uncaught SyntaxError: JSON.parse: expected ',' or '}' after property value in object at line 1 column 26 of the JSON data.

This message is derived from the following code

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>"}');

What do they mean by column and how do I determine where a column starts and stops?

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

0

In this context, column is read as character.

You need to escape your \ with a double \\

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!