array_to_json ( anyarray [, boolean ] ) → jsonConverts an SQL array to a JSON array. The behavior is the same as to_json except that line feeds will be added between top-level array elements if the optional boolean parameter is true.array_to_json('{{1,5},{99,100}}'::int[]) → [[1,5],[99,100]]