pradeep kumar

pradeep kumar

  • NA
  • 32
  • 7.7k

How do I return Key Value pair Json from MVC controller

Sep 30 2017 3:38 AM
I want to return this type of Json from MVC controller
 
[
{
"key": "iPhone",
"values": [
{
"axis": "Battery Life",
"value": 0.22
},
{
"axis": "Brand",
"value": 0.28
},
{
"axis": "Contract Cost",
"value": 0.29
},
{
"axis": "Design And Quality",
"value": 0.17
},
{
"axis": "Have Internet Connectivity",
"value": 0.22
},
{
"axis": "Large Screen",
"value": 0.02
},
{
"axis": "Price Of Device",
"value": 0.21
},
{
"axis": "To Be A Smartphone",
"value": 0.50
}
]]
 

Answers (1)