Postgresql – pgadmin: can’t insert jsonb[] values with strings

jsonpgadminpgadmin-4postgresql

I have jsonb[] column and it allows me to insert some nested arrays, but only with number values like {{1,2,3}, {4,5,6}, {7,8,9}}. I'm not talking about inserting some nested objects like {{"one": "two"}, {"three": "four"}}.

How to even insert nested string values like:

{ {"one", "two", "three"},
  {"four", "five", "six"},
  {"seven", "eight", "nine"} }

enter image description here

ERROR: invalid syntax…, token "one" invalid

Best Answer

The answer is: in pgadmin you have to escape every quotation mark before and after key/value definition. What a sophisticated solution.

{
    "{\"one\": \"two\"}",
    "{\"three\": \"foure\"}",
    "{\"fivep\": \"six\"}"
}