Checking JSON respond with test script

I also wrote something about accessing different parts of a JSON response that might be useful: