Hello,
I am trying to get WHOIS data through API
the API returns three values in JSO
1. Result 2. Domain Availability 3. WHOIS (A string containing all the whois result)
How do I convert the third value string to Array or Object or something.?
I tried exploding but sadly no luck.
`string(4168) “{“result”:”success”,”status”:”unavailable”,”whois”:” — Domain Name: SAMPLE.COMu003Cbr /u003Ern Registry Domain ID: 5066842_DOMAIN_COM-VRSNu003Cbr /u003Ern Registrar WHOIS Server: whois.moniker.comu003Cbr /u003Ern Registrar URL: http://www.moniker.comu003Cbr /u003Ern Updated Date: 2022-03-29T18:44:00Zu003Cbr /u003Ern Creation Date: 1997-06-18T04:00:00Zu003Cbr /u003Ern Registry Expiry Date: 2023-06-17T04:00:00Zu003Cbr /u003Ern Registrar: Moniker Online Services LLCu003Cbr /u003Ern Registrar IANA ID: 228u003Cbr /u003Ern Registrar Abuse Contact Email: [email protected] /u003Ern Registrar Abuse Contact Phone: +49.68949396850u003Cbr /u003Ern Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibitedu003Cbr /u003Ern Name Server: NS1.MYTRAFFICMANAGEMENT.COMu003Cbr /u003Ern Name Server: NS2.MYTRAFFICMANAGEMENT.COMu003Cbr /u003Ern DNSSEC: unsignedu003Cbr /u003Ern URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/u003Cbr /u003Ernu0026gt;u0026gt;u0026gt; Last update of whois database: 2022-05-27T10:03:52Z u0026lt;u0026lt;u0026lt;u003Cbr /u003Ernu003Cbr /u003ErnFor more information on Whois status codes, please visit https://icann.org/eppu003Cbr /u003Ernu003Cbr /u003ErnNOTICE: The expiration date displayed in this record is the date theu003Cbr /u003Ernregistraru0027s sponsorship of the domain name registration in the registry isu003Cbr /u003Erncurrently set to expire. This date does not necessarily reflect the expirationu003Cbr /u003Erndate of the domain name registrantu0027s agreement with the sponsoringu003Cbr /u003Ernregistrar. Users may consult the sponsoring registraru0027s Whois database tou003Cbr /u003Ernview the registraru0027s reported date of expiration for this registration.u003Cbr /u003Ernu003Cbr /u003ErnTERMS OF USE: You are not authorized to access or query our Whoisu003Cbr /u003Erndatabase through the use of electronic processes that are high-volume andu003Cbr /u003Ernautomated except as reasonably necessary to register domain names oru003Cbr /u003Ernmodify existing registrations; the Data in VeriSign Global Registryu003Cbr /u003ErnServicesu0027 (u0022VeriSignu0022) Whois database is provided by VeriSign foru003Cbr /u003Erninformation purposes only, and to assist persons in obtaining informationu003Cbr /u003Ernabout or related to a domain name registration record. VeriSign does notu003Cbr /u003Ernguarantee its accuracy. By submitting a Whois query, you agree to abideu003Cbr /u003Ernby the following terms of use: You agree that you may use this Data onlyu003Cbr /u003Ernfor lawful purposes and that under no circumstances will you use this Datau003Cbr /u003Ernto: (1) allow, enable, or otherwise support the transmission of massu003Cbr /u003Ernunsolicited, commercial advertising or solicitations via e-mail, telephone,u003Cbr /u003Ernor facsimile; or (2) enable high volume, automated, electronic processesu003Cbr /u003Ernthat apply to VeriSign (or its computer systems). The compilation,u003Cbr /u003Ernrepackaging, dissemination or other use of this Data is expresslyu003Cbr /u003Ernprohibited without the prior written consent of VeriSign. You agree not tou003Cbr /u003Ernuse electronic processes that are automated and high-volume to access oru003Cbr /u003Ernquery the Whois database except as reasonably necessary to registeru003Cbr /u003Erndomain names or modify existing registrations. VeriSign reserves the rightu003Cbr /u003Ernto restrict your access to the Whois database in its sole discretion to ensureu003Cbr /u003Ernoperational stability. VeriSign may restrict or terminate your access to theu003Cbr /u003ErnWhois database for failure to abide by these terms of use. VeriSignu003Cbr /u003Ernreserves the right to modify these terms at any time.u003Cbr /u003Ernu003Cbr /u003ErnThe Registry database contains ONLY .COM, .NET, .EDU domains andu003Cbr /u003ErnRegistrars.u003Cbr /u003Ern”}”
`