I have a JSON output from an API written in python I am fetching the results in JSON but I want to append a string let say abc.com to each result.
{
"subdomains": [
"results",
"www",
"sip",
"cdn",
"pavpn",
"intranet",
"laxvpn",
"news",
"files",
],
}
So each returned value should be parsed out and appended like results.abc.com pavpn.abc.com etc so I can get a clean string out of it containing only subdomain plus abc.com appended to that.
I have tried many solutions:
`result = map(lambda x: str(x) + "." + str(domain_name), response.text)`
I want the output to be
subdomain.abc.com
subdomain.abc.com
etc.. Any help will be appreciated.
Thanks