def get_item(filename, uuid):
with open(os.fsencode(str(filename)), "<STR_LIT:r>") as f:<EOL><INDENT>data = json.load(f)<EOL>results = [i for i in data if i["<STR_LIT>"] == str(uuid)]<EOL>if results:<EOL><INDENT>return results<EOL><DEDENT>return None<EOL><DEDENT>
Read entry from JSON file