A function compare_json_data(source_data_a,source_data_b)
, accepting structures populated with data loaded from json.load()
and comparing for equality.
$ ./compare.py
Compare JSON result is: True
JSON files a.json
and b.json
are loaded via load_json()
function and structures passed into compare_json_data()
for comparison.
Actually my response will return with timestamp. In such cases, it is failing as the timestamp differes. could you please help me to handle those scenarios?