Refactored JSON Parser to clean up duplicated code.
Removed all the potential null references I could find among other suggested refactors.