Skip to content

Instantly share code, notes, and snippets.

View pallavigupta1005's full-sized avatar

pallavigupta1005

View GitHub Profile
@pallavigupta1005
pallavigupta1005 / README.md
Created September 21, 2020 11:51 — forked from magnetikonline/README.md
Python - comparing JSON data structures.

Python - comparing JSON data structures

A function compare_json_data(source_data_a,source_data_b), accepting structures populated with data loaded from json.load() and comparing for equality.

Example

$ python 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.