I am building an application to identify duplicated and unique data in a JSON file and I want to output the number of Unique records.
I have the a JSON object which has lots of first names and last names. I want to be able to identify duplicate data but also if the names are similar it should identify the data as the same. For example:
[
{FirstName: 'Joshua', LastName: 'smith'}
{FirstName: 'Joshuaa', LastName: 'smith'}
]
As you see above the second object has an extra 'a' but I want this to be considered as the same piece of the data as the first object. So basically take into consideration typo's within the data for both FirstName and LastName.
I thought about using Regex but I cant figure where to use it.