6
Reply

Send Json Data to MVC Web API Through Post Request

gopal kannan

gopal kannan

Dec 18 2013 12:36 AM
5.6k
hi..


How to send Json Data to Web API using Post Request.


My Json value is like below.


  var json123 = {


 "firstname": {
                    "value": "john",
                    "versions": [
                      {
                          "value": "john",                        
                          "selected": false
                      },
 "lastname": {
                    "value": "paul",
                    "versions": [
                      {
                          "value": "paul",                        
                          "selected": false
                      },
 "email": {
                    "value": "[email protected]",
                    "versions": [
                      {
                          "value": "[email protected]",                        
                          "selected": false
                      },


}


Here I need to pass all data to my post request and after receiving the request i need to take the each attribute value through c# only.


How to do this..


need ur suggestions with examples.


Regards,
Gopal.s

Answers (6)