I have a JSON obj, after some operations (like delete some pieces), I print it and everything looks good except that I have some null values. How do I remove th
Delete an array element with the delete operator leaves a hole in the array.
Instead, you should use Array.splice which can remove properly an element from array.