Removing duplicate from RB and updating JSON