modify Alimentation api to return json response

in the case of pull alimentation,the api outputs json response
with processing details