remove distinct for json fields