added a basic JSON response parsing example script
a few comments & minor refactorings