A useful extra test for the proposed CHECK (shipping ? 'country'): try an object with {"country": null}. The key exists, so the check passes. If the contract is a required string, CHECK (jsonb_typeof(shipping -> 'country') IS NOT DISTINCT FROM 'string') rejects both a missing key and JSON null. A nonempty string needs a separate rule. I work on SqlOtter. For a small fixture, its field editor’s JSON Mode (Edit Mode → JSON Mode) is handy for inspecting the raw object; Cancel exits without saving changes.