prefer-jsonb
JSON column type or table-DDL cast — use JSONB.
Why
JSONB supports indexing and containment operators and avoids reparsing the stored document on every read.
Fix
Declare JSONB columns and use jsonb casts for JSON document values.
Examples
CREATE TABLE document (metadata JSON NOT NULL);CREATE TABLE document (metadata JSONB NOT NULL DEFAULT '{}'::jsonb);