I am trying to convert the XML to JSON but not able to read following last currency attribute, how should present into json
><order id="2345">
<customer>
<firstName>ronal</firstName>
<lastName>kal</lastName>
<address1>321 Main St.</address1>
<address2>PO Box [526]</address2>
<city>Atlanta</city>
<state>IL</state>
<zip>7562</zip>
<orderTotal currency="USD">635.88</orderTotal>
</customer>
**
order:{
orderid:payload.order.@id,
customer:payload.order.*customer map
{
Firstname:$.firstName,
Lastname:$.lastName,
Address1:$.address1,
Address2:$.address2,
City:$.city,
State:$.state,
zip:$.zip,
Ordertoal:payload.
}