Click here to Skip to main content
15,897,090 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
MadMyche 2-May-18 11:19am    
Do you have a C# class that you are binding this against?
Member 13808254 2-May-18 11:26am    
no

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900