proxy failover with json