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
Thanks in advance!