Removing duplicate json variable