AnsweredAssumed Answered

using javascript to split a string and loop add elements to xml.

Question asked by JeremyShipley9201 on Jul 8, 2015
Latest reply on Jul 9, 2015 by richard_moon
I have the following json:{{
  "Records" : [
    {
      "BatchId" : 0,
      "Id" : 104206,
      "OrderQueueID" : 332213,
      "Params" : "WEBPAY_2693", "doc1", 50.00, "doc2", 50.00
      "Type" : 3
    }
  ]
}

I need to split the params filed into something like : <docNumber>WebPay_2693</docNumber><Applies><Apply><docnumber>doc1</docnumber><amount>50.00</amount></Apply><docnumber>doc2</docnumber><amount>50.00</amount></Apply></Applies>
 

Outcomes