Issues with JSON array values and result transformation in pg - Effect Community