send response in json on hijacked http conn. now no issues with firefox with response types