key value pair mapping in XSLT by dynamically
Summary
key value pair mapping in XSLT by dynamicallyContent
Hi Everyone,
I have requirement where i can map key value pair mapping dynamically from a template.
For instance : Below JSON request has key value pair in a one template.
{"params": [ {"name":"courseDesc" , "value" : "English 101"}, {"name":"grade" , "value" : "101"}, {"name":"studentStatus" , "value" : "failing"}, {"name":"paymentDetail" , "value" : "Success"} ] }
Generally by using XSLT in ICS we can generate response like below.
{
"courseDesc": "English 101",
"grade": "101",
"studentStatus": "failing",
"paymentDetail": "Success"
}
However i have some what tricky requirement where multiple templates in which key value pairs are different.
I want to write an XSLT mapping logic where it has to fetch key values from each template and transform it to below format.