When selecting content of a jsonb field the type per default is jsonb. But we need to proper posgres type, so that the output can be parsed properly. Therefore make sure that the field has the proper output operator attached.