Handle json response in bytes