Refactor fetch_json
Merge pull request #17 from stephenh1988/master

Re-factoring fetch_json