0

通常我们会看到这种格式的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

4

0 回答 0