postgres split json array into columns