check that response from api is valid json
make json_decode static
Merge pull request #16 from unikent/feature/cache-json-only

check that response from api is valid json