Working with JSONB in PostgreSQL

JSONB is the feature that lets PostgreSQL store and query semi-structured data without giving up on being a relational database. It's genuinely useful and genuinely easy to misuse.