I just published a package Javascript Library to help work with the Pet Finder API. I found JSON and their API in general to be very challenging to work with. This library facilitates the calls and transformation to fix these headaches. Hope the inter web finds it useful.
Github : https://github.com/drlukeangel/Pet-Finder-API-Javascript-Library