I need to compare 2 JSONs, both have the same key, but different values within each key. I need to compare the percentage match between the two values.
For example: JSON 1:
{
'education': {'name': 'Mount Carmel College', 'grade': '83'}
}
JSON 2:
{
'education': {'name': 'bachelors in Mount Carmel College', 'grade': '83%'}
}
I need to check what percentage of the data in JSON 1 matches JSON 2. It is also to be noted that the 2 JSONs will not be in order.
I cannot use regex because it will only tell me if the data in one JSON exists in another JSON. It will not be able to give me how good of a match it is.