KITFORMA · EDITORIAL ANSWER
How do I distinguish JSON null from SQL NULL in PostgreSQL?
KitForma editorial guide. A JSON document can contain the JSON value null while the SQL column itself remains non-NULL. Missing keys add another distinct case.
Step-by-step answer
"value": null. Do not rely on one COALESCE to express every distinction. Document how the API maps these states; otherwise a patch intended to clear a field can be mistaken for a field that was never supplied.Sources and verification
Sources checked:
Scope: This editorial guide is based on the cited sources and tool behavior. A forum question or a query observed for our site does not establish market search volume, low competition, guaranteed rankings or inadequate answers elsewhere.
This editorial answer was prepared by KitForma with AI assistance. It is not presented as a real member question or an independent user review. Check the sources and the result with your own file; report corrections in the discussion.