David Smith

David Smith

  • NA
  • 2k
  • 0

Json Deserialize Common Format

Apr 7 2022 4:26 PM

How to deserialize the common format below. I cant change the customers input file. I want to deserialize this input without going through the line by line looking for brackets.

 

SendAction
2018-10-18T20:04:01.000000
{
    "EventDate": "2018-10-18T20:04:01.8278435",
    "HeaderVersion": "1.0.0.0",
    "Details": [
        {
            "ApplicationGuid": "3e8eb057-59da-4bfb-9d6c-a533a8f9bd86",
            "ApplicationVersion": "1.0.0.0",
            "ClickItemID": "",
            "Description": "The Large Roads set includes 70 double-sided tiles designed for the gamer who wants large to X-large roads. If you enjoy playing with a large scale and need larger roads, this set is made just for you. The 70 tile set includes interlocking pieces with crossroads, curves and straight options. Additional road fill is provided on the reverse side to give you the variability of size with maximum versatility for your road construction.",
            "Discount": 0.0,
            "EventType": "ViewDetails",
            "ItemID": "793",
            "ProductID": "737",
            "ProductName": "Land - Large Roads",
            "ProductPrice": 19.95,
            "Promo": "",
            "Quantity": 0,
            "TransAmount": 0
        }
    ],
    "Session": "wb1i401andnlyd5swzktrsg3",
    "SiteGuid": "0bc8986c-2eb1-4ad7-8eba-ba98b58ef666",
    "UserEmail": "",
    "UserGuid": "00000000-0000-0000-0000-000000000000",
    "UserID": "0"
}


Answers (20)