Sorry seems silly but I can’t get it. So I need to remove lines on a JSON
so I tried a few ways, but grrrr
----mySettingName
[{
“Y”: 180,
“X”: 560,
“Name”: “Name Number 1”,
},
[],
{
“Y”: 180,
“X”: 620,
“Name”: “Name Number 3”,
}]
tried to remove a line like
mySettingName[2] = {}
saveTable(mySettingName, “Name.json”)
– leaves like ,[],
=========================
–Or
mySettingName[2] = nil
saveTable(mySettingName, “Name.json”)
– leaves like ,null,
I just need to get rid of a full line
so it should look like
----mySettingName
[{
“Y”: 180,
“X”: 560,
“Name”: “Name Number 1”,
}, {
“Y”: 180,
“X”: 620,
“Name”: “Name Number 3”,
}]