response html mode can return json_encode(array) if user want.change stuture of docGenerator
fix