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"
}
}
],
}
Sagar PardeshiPosted Feb 12, 2021, 5:30 AM
Jignesh KumarPosted Feb 12, 2021, 4:12 AM
AniPosted Feb 11, 2021, 12:03 PM
I am getting below response
Rijwan AnsariPosted Feb 11, 2021, 11:06 AM
Arkadeep DePosted Feb 11, 2021, 8:58 AM