Removing duplicate JSON when new data is fetched