Also put json.get in the json is not None check
Merge pull request #271 from pamelafox/patch-1

Also put json.get() in the "if json is not None" check