Expanding JSON arrays to rows with SQL on RedShift