def read_json(file_path):
try:<EOL><INDENT>with open(file_path, '<STR_LIT:r>') as f:<EOL><INDENT>config = json_tricks.load(f)<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>print('<STR_LIT:U+0020>'+'<STR_LIT:!>'*<NUM_LIT>)<EOL>print('<STR_LIT>')<EOL>print('<STR_LIT>'.format(file_path))<EOL>print('<STR_LIT>')<EOL>print('<STR_LIT:U+0020>'+'<STR_LIT:!>'*<NUM_LIT>)<EOL>raise<EOL><DEDENT>return config<EOL>
Read in a json file and return a dictionary representation