I am looking for a solution where I can convert the JSON structure with C#. Currently, I am trying to convert this JSON structure using the Newtonsoft library but I'm not finding any solution.
Below JSON needs to be converted:
[
[
{
"FieldName": "Id",
"Value": 1234
},
{
"FieldName": "FieldName1",
"Value": 2722
},
{
"FieldName": "FieldName2",
"Value": "2022-06-21T13:03:11.5958542Z"
},
{
"FieldName": "FieldName3",
"Value": "XYZ"
}
]
]
Required JSON structure from above JSON:
[
{
"Id": 1234,
"FieldName1" : 2722,
"FieldName2" : "2022-06-21T13:03:11.5958542Z",
"FieldName3" : "XYZ"
}
]