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

165
Views
Cómo cambiar mi tipo de contenido de un archivo json en JS

He estado trabajando con un archivo Json y javascript. Al abrir el archivo recibí este error

SyntaxError: Unexpected token e in JSON at position 0

Después de algunas investigaciones, descubrí que el tipo de contenido de mi archivo JSON en realidad está configurado en html. Pero ahora no sé cómo cambiar el tipo de contenido de mi archivo a json. ingrese la descripción de la imagen aquí

 function generateRow(){ console.log("WORKING"); fetch('./addplaylist.json') .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.log(error)); }

about 4 years ago · Juan Pablo Isaza
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!