Fix and streamline JSONRequest Id generation