health: client have to send an hw structure, not a json

As the server expects the message to be an .hw structure, let's
transform the json to hw.