4 ms·
In cases where the field is required I would agree. But in the context of an update request, {"foo":null} and {} might both be valid with different semantics. "
by CipherThrowaway 4y ago
In cases where the field is required I would agree. But in the context of an update request, {"foo":null} and {} might both be valid with different semantics. "Update this field to null" vs "don't update this field"
- dbrgn 4y agoA similar issue is {}, {"mylist": null} and {"mylist": []}. Three ways to represent a missing or empty list.