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

288
Views
JS Array: values get lost in JSON.stringify()

I am trying out JS today and ran into the issue that the values of an array get lost when I convert it. The length of the JSON string is correct.

<script>
        console.log(arrayTmpre); // returns the correct array to console
        var testtwo = JSON.stringify(arrayTmpre); // should return the array as JSON readable string
        console.log(testtwo); // the result looks like this: [null,null,null] The values are missing!
        
</script>

This is the output in the console console log

Thanks in advance!

about 4 years ago · Santiago Gelvez
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!