Sending json response for as_connect.