code: def get_json(jsonpath, default):
      
      from os import path
      import json
      result = default
      
      if path.isfile(jsonpath):
          try:
              with open(jsonpath) as f:
                  result = json.load(f, object_pairs_hook=load_with_datetime)
          except(IOError):
              err("Unable to deserialize JSON at {}".format(jsonpath))
              pass
  
      return result
docs: Returns the JSON serialized object at the specified path, or the default
      if it doesn't exist or can't be deserialized.