use handle json response synchronously