We have a json object provided by vendor with naming conventions suitable only for vendor system. We would like to rename all the json attributes names matching our company's naming standards. I showed a very small XML file but in reality we have a huge XML with many elements. The transformed json object will eventually be persisted in our datastore.Any inputs in handling efficient way?
Json Example Provided by Vendor
{
  "Events": [
  {
     "TestOn": {
        "TestCode": "32",
        "TestSubCode": "11",
        "TestStatus": "4",
     },
     "Timers": {
        "TestOpCode": "10",
        "TestMode": "4",
        "TestItemTime": "4",
     }
  }
  ],
  "Ticket": [
  {
    "Discount": {
        "OpCode": "3",
        "CluCode": "00001530020003",
        "DeptNo": "11",
     },
     "Promotion": {
        "OpCode": "96",
        "SubCode": "26",
        "F-Promotion": "1",
     }
  }
] }
Transformed Json Object
{
  "PxEvents": [
  {
     "PxTestOn": {
        "PxTestCode": "32",
        "PxTestSubCode": "11",
        "PxTestStatus": "4",
     },
     "PxTimers": {
        "PxTestOpCode": "10",
        "PxTestMode": "4",
        "PxTestItemTime": "4",
     }
  }
  ],
  "PxTicket": [
  {
    "PxDiscount": {
        "PxOpCode": "3",
        "PxCluCode": "00001530020003",
        "DeptNo": "11",
     },
     "PxPromotion": {
        "PxOpCode": "96",
        "PxSubCode": "26",
        "PxPromotion": "1",
     }
  }
] }
