ChannelIQ / jsoncompare

A simple python library for comparing json objects for equivalency and helping developers to quickly spot differences between complex json structures.
MIT License
55 stars 41 forks source link

enhanced to support ignoring named keys #1

Closed dandroid88 closed 10 years ago

dandroid88 commented 10 years ago

main comparison methods now optionally take a list of keys as the 4th argument. when this key is encountered, in 'a' (the first object), we check that it exists in 'b' and rather than comparing the value we simply return true. This is particularly valuable in cases when a field contains a temporal value, for example a timestamp.