- implements decode of http response of json type as interceptor