added case for getJsonResponse, some api's does not return results, unexpected end of input error in JSON.parse
fix case
Merge pull request #2 from edenjs/hotfix/rest-case-for-json-response

added case for getJsonResponse, some api's does not return results, unex...