I have below json
[{
"DataType1": "Spectre_DT1",
"DataType2": "Spectre_DT2",
"DataType3": "Spectre_DT3",
"HostName": "spectrum",
"Listener": "c",
"Timestamp": "2016-12-8T13:54:12+08:00",
"Duration": "0.000086712"
}]
So i want display as
[{
"DataType1": "Spectre_DT1",
"HostName": "spectrum",
"Listener": "c",
"Timestamp": "2016-12-8T13:54:12+08:00",
"Duration": "0.000086712"
},
{
"DataType2": "Spectre_DT2",
"HostName": "spectrum",
"Listener": "c",
"Timestamp": "2016-12-8T13:54:12+08:00",
"Duration": "0.000086712"
},
{
"DataType3": "Spectre_DT3",
"HostName": "spectrum",
"Listener": "c",
"Timestamp": "2016-12-8T13:54:12+08:00",
"Duration": "0.000086712"
}]
What I have tried:
I tried but did find way to change single json to multiple json.This is based on C# and Linq