3 ms·
To delete something, I imagine you set it to undefined. I don't know anyone who uses the undefined state at rest for anything interesting.
by HWR_14 5y ago
To delete something, I imagine you set it to undefined. I don't know anyone who uses the undefined state at rest for anything interesting.
- anentropic 5y agoJSON doesn't have undefined, only null the partial updates approach works ok for updating 'schemaful' data, where it could only ever mean to set the field to null and could never delete the field from the object altogether but for editing a JSON document or other schemaless data then both operations are possible and you'd need to be able to distinguish them