Let's say I want to parse through 100 json objects and extract a certain element from the object for example "author": "Mark Twain".
If 1 of the 100 json objects is missing information and does not have the "author" key then a key error gets thrown stopping the program.
What's the best way to handle this issue?
Also if there are redundancies in the json object for example there are keys called "authorFirstName": "Mark" and 'authorlastName": "Twain", are there ways to use these instead of the original "author" key, in the case that "author" is missing?