def load_from_json(filename, preferred_path=None, raise_if_missing=True):
 target_file = file_find(filename, preferred_path, raise_if_missing)
 dictionary = False
 if (target_file is not False):
  with open(target_file, 'rb') as f_handle:
   dictionary = json.loads(f_handle.read())
 return (dictionary, target_file)

def load_from_json ( filename , preferred_path = None , raise_if_missing = True ) : target_file = file_find ( filename , preferred_path , raise_if_missing ) dictionary = False if ( target_file is not False ) : with open ( target_file , 'rb' ) as f_handle : dictionary = json . loads ( f_handle . read ( ) ) return ( dictionary , target_file )
return a dictionary found in json format in a given file .