JSON keeps the input text verbatim (fast to write, slow to query); JSONB parses into a binary format supporting indexing and containment operators — the usual default choice. JSONB is anything but deprecated, both nest arbitrarily, and both validate — JSONB additionally normalizes duplicates and whitespace.
Official docs