changed the way jsonclient retrieve data

Signed-off-by: Marco Milanesio <milanesio.marco@gmail.com>
timeout management in phantom thread

Signed-off-by: Marco Milanesio <milanesio.marco@gmail.com>