Fix parsing of JSON API
Merge pull request #11 from PoorDog/json-fixes

Fix parsing of JSON API