PostgreSQL 9.4 introduces new features for JSON support including:
1) New JSON creation functions like json_build_object() and json_build_array() that make constructing JSON data easier.
2) The jsonb type which stores JSON in a canonical, indexable format and allows more efficient querying and indexing of JSON data compared to the json type.
3) Indexing capabilities for jsonb including GIN indexes that support containment and exists operators as well as expression indexes on JSON subdocuments.
4) Many existing JSON functions now have jsonb variants to allow processing of jsonb data.
The jsonb type is generally preferred over json when indexing, querying or modifying JSON data