def json_integrity(baseline, suspect):
try:<EOL><INDENT>for k,v in baseline.items():<EOL><INDENT>for ks, vs in suspect.items():<EOL><INDENT>keys_baseline = set(v.keys())<EOL>keys_suspect = set(vs.keys())<EOL>intersect_keys = keys_baseline.intersection(keys_suspect)<EOL>added = keys_baseline - keys_suspect<EOL>rm = keys_suspect - keys_baseline<EOL>logger.info('<STR_LIT>' % (str(added), str(rm)))<EOL>if keys_baseline != keys_suspect:<EOL><INDENT>return False<EOL><DEDENT><DEDENT><DEDENT><DEDENT>except KeyError as e:<EOL><INDENT>logger.info(<EOL>'<STR_LIT>' %<EOL>str(e))<EOL><DEDENT>return True<EOL>
Summary:
    Validates baseline dict against suspect dict to ensure contain USERNAME
    k,v parameters.
Args:
    baseline (dict): baseline json structure
    suspect (dict): json object validated against baseline structure
Returns:
    Success (matches baseline) | Failure (no match), TYPE: bool