SyslogicNL/DoctrineJsonFunctions extends Doctrine with support for PostgreSQL's native JSON operators. Add this to your top-level config or put this file somewhere and import it:
imports:
- { resource: "@SomeBundle/Resources/config/postgres_json_functions.yml" }