Hi All,
I have the following JSON message and I need to deserailize it uisng X++ code…
ContactPersonID
ContactTypeId
OrderId
209674
SPD
209674
Senior Contact
209674
x
209674
y
209674
z
ORD-05238-C9K3H2
209674
u
ORD-05240-H7M1K7The message looks like this:
{
“entities”:[
{
“_Tablename”:“ECL_ContactPersonType”,
“ContactPersonID”:“209674”,
“OrderNumbers”:[
{
“OrderNumber”:“”,
“RelatedRecords”:[{
“ContactType”:“SPD”,
“OrderNumber”:“”
},
{
“ContactType”:“Senior Contact”,
“OrderNumber”:“”
},
{
“ContactType”:“x”,
“OrderNumber”:“”
},
{
“ContactType”:“y”,
“OrderNumber”:“”
}
]
},
{
“OrderNumber”:“ORD-05238-C9K3H2”,
“RelatedRecords”:[{
“ContactType”:“z”,
“OrderNumber”:“ORD-05238-C9K3H2”
}
]
},
{
“OrderNumber”:“ORD-05240-H7M1K7”,
“RelatedRecords”:[{
“ContactType”:“u”,
“OrderNumber”:“ORD-05240-H7M1K7”
}
]
}
]
}
]
}
Thanks in Advance…