returning json for ip route