通常我们会看到这种格式的json
{"query":"google.com","domain":"google.com","domain_idna":"google.com","host":"","subdomain":"google.com"}
然后解码器我们将使用
$server = $server_url_for_requests_json_response;
$json = @file_get_contents($server, true);
$decode = json_decode($json, true);
$domain_idna = $decode[domain_idna];
然后我们会得到$domain_idna = google.com;
但现在我得到了这种json格式(我从未见过。)
{"status":"success","domain":"google.com","available":false}
我希望///可用///如何解码
让这个json点击这里http://freedomainapi.com/?key=3xhebruryp&domain=google.com