server accepts json streams

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