Could someone provide insight into the reason behind this behavior?
let data = JSON
let date = '10-7'
data['id'] = []
data['id'][date] = [[1,2,3]]
data['id'][date].push([1,1,1])
console.log(data) // Outputs: { id: [ '10-7': [ [Object], [Object] ] ] }
console.log(JSON.stringify(data)) // Outputs: {"id":[]}
console.log(data['id'][date][0][0]) // Outputs: 1
I am encountering a similar issue when saving my JSON to a file using the jsonfile module. Why is it not displaying my JSON format as intended?