added is_json method in Request