bortzmeyer, 7 months ago @jschauma Just for fun, here is a #jq script to extract the registrant (but, as you noticed, the biggest problem is in the lack of consistency of data): .entities [] | select(.roles[] | select(. == "registrant")) | .vcardArray[1] | map(select(.[0] == "fn"))[0][3] Use it like: curl -s https://rdap.nic.fr/domain/egis.fr | jq -f rdap.jq
@jschauma Just for fun, here is a #jq script to extract the registrant (but, as you noticed, the biggest problem is in the lack of consistency of data):
.entities [] | select(.roles[] | select(. == "registrant")) | .vcardArray[1] | map(select(.[0] == "fn"))[0][3]
Use it like:
curl -s https://rdap.nic.fr/domain/egis.fr | jq -f rdap.jq