Would using jsonb be more consistent?
# SELECT array_to_json(array[1, 2, 3])::jsonb, json_build_array(1, 2, 3)::jsonb; array_to_json | json_build_array ---------------+------------------ [1, 2, 3] | [1, 2, 3]
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных