I have below xml which has to be converted to JSON array using xslt. Please help me
Input xml
Expected JSON
{
"employee":[
{
"empid":"123",
"empdesignation":"MGR",
"emprole": [
"employee,supervisior,manager"
],
"address":{
"addressLine1":"123 TEST LANE",
"addressLine2":"AddressLine2",
"cityName":"BOSTON",
"countryName":"USA",
"postalCode":"07723"
}
}
],
"company":[
{
"companylocationid":"2",
"companylocation":"USA",
"address":{
"addressLine1":"789 WORK LANE",
"addressLine2":"AddressLine2",
"cityName":"California",
"countryName":"USA",
"postalCode":"90210"
}
}
],
}

Rijwan AnsariRank #82 · 24.2K reputationPosted Feb 11, 2021, 6:06 AM EST
Arkadeep DeRank #853 · 2.6K reputationPosted Feb 11, 2021, 3:58 AM EST
AniRank #2,940 · 490 reputationPosted Feb 11, 2021, 7:03 AM EST
I am getting below response
Jignesh KumarRank #91 · 22.9K reputationPosted Feb 11, 2021, 11:12 PM EST
Sagar PardeshiRank #103 · 20.8K reputationPosted Feb 12, 2021, 12:30 AM EST