Right now if the first JSON object is missing keys that are present in the second JSON object the script crashes.