correct json post on server during ranging after porting in flask

Signed-off-by: Andrea Corna <andrea.corna.ac.91@gmail.com>