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

199
Views
JSON.stringify devuelve " en vez de ""

Estoy buscando convertir texto como este en JSON:

 Company Team Facebook Marketing Google Engineering Microsoft Product

Cuando registro JSON.stringify devuelve " en lugar de " . ¿Por qué sucede eso? ¿Qué puedo cambiar para evitar esto?

 let pre = document.querySelector('pre').innerHTML; var cells = pre.split('\n').map(function (el) { return el.split(/\s+/); }); var headings = cells.shift(); var obj = cells.map(function (el) { var obj = {}; for (var i = 0, l = el.length; i < l; i++) { obj[headings[i]] = isNaN(Number(el[i])) ? el[i] : +el[i]; } return obj; }); var json = JSON.stringify(obj,null,5); console.log(json)

JS violín

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!