We have some data in our Postgres database stored in JSONB format. We try to transform those data with an attribute mapping to an other format. The current solutions uses a view