I am trying to add a sanity check with respect to API, which tends to change its structure somewhat very quickly, hence I am thinking of adding a routine check, which stores the json response in plist file with date+time, and hence with respect to key structures, compare with the previous date and see if anything changed. Is there any python, shell or perl script written to do this already? I don’t want to re-invent the wheel, so thought someone might have already done this prior?
Share
A quick CPAN search reveals a couple modules for manipulating plists: Data::Plist and Mac::Tie::PList. I don’t know their quality.
Data::Plist treats the plist file like any other XML file. Mac::Tie::PList uses the native Objective C interface which is likely to be more accurate but its Perl interface, Foundation/PerlObjCBridge, is only available from the perl which ships with OS X.