title: ,column <columnName> is of type jsonb but expression is of type text[]
body: <p>Have array as below, needs to be saved in JSONB column:</p>
  
  <pre><code>[{"FoodType":"veg","pref":"High"}
  ,{"FoodType":"sea food","pref":"Medium"}
  ,{"FoodType":"Chicken","pref":"Low"}]
  </code></pre>
  
  <p>I simply pass the req.body object (from Express) for insert to DB. </p>
  
  <pre><code>db.one('insert into foodies(FoodieName, FoodPref,country,languagePref)' +
  'values(${FoodieName}, $[FoodPref], ${country} ,${languagePref})  RETURNING FoodieId',req.body)
  </code></pre>
  
  <p>**PG DB via pg-promise library throws error :</p>
  
  <pre><code>{ [error: column "foodpref" is of type jsonb but expression is of type text[]]
  name: 'error',
  length: 196,
  severity: 'ERROR',
  code: '42804',
  detail: undefined,
  hint: 'You will need to rewrite or cast the expression.',
  position: '123',
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  schema: undefined,
  table: undefined,
  column: undefined,
  dataType: undefined,
  constraint: undefined,
  file: 'parse_target.c',
  line: '529',
  routine: 'transformAssignedExpr' }
  POST /api/member 500 638.510 ms - 57
  </code></pre>
  
  <p>i think its driver issue cos array: function (arr) in formatting.js [in pg-promise lib] returns string and postgres cant digest it. If array is nested in any object then it works smoothly e.g. </p>
  
  <pre><code>"MyPref" : {Same Object array as above}
  </code></pre>
  
  <p>Here MyPref gets through in column "FoodPref" without any issue.</p>