handling unencoded json response