JSON / presence / handoff
Separate “missing” from empty JSON values
Review missing fields, null, empty strings, arrays and objects as different presence states. Use synthetic cases only; no user JSON is accepted.
JSON / presence / handoff
Review missing fields, null, empty strings, arrays and objects as different presence states. Use synthetic cases only; no user JSON is accepted.
Whether a field is absent, explicitly null, or a typed empty value changes defaults, updates and required checks.
missing ≠ null ≠ "" ≠ [] ≠ {}| case | What to review |
|---|---|
missing-field | The field does not exist; a default may apply. |
null-value | The field exists and explicitly carries null. |
empty-string | A string exists and has zero length. |
empty-array | An array exists with zero elements. |
empty-object | An object exists with zero keys. |
explicit-value | A value exists and is part of the handoff. |
This page uses synthetic fixtures only. There is no upload, external request, storage, or user JSON parsing.