Json response for the optimized route