Hello.
On postgres 9.6.3 (current ubuntu release) using the jsonb_pretty function as in the documentation:
"select jsonb_pretty('[{"f1":1,"f2":null},2,null,3]')" does only give output "[". it seems the function only outputs the first character.
Many thanks
Martin Jonsson