Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

How Posting JSON object to webapi

$
0
0

Hi,

I have a requirement to post following type of json  object in payload of webapi.

 In am using .Net 4.5.

Can anyone help me to find out

{

"ABC" : {

     "Id": 123

     "2017-08-25" : {

      "rate": 12.5

      },

     "2017-08-26" : {

      "rate": 25.5

      }

},

"DEF" : {

     "Id": 456

     "2017-08-25" : {

      "rate": 10.5

      },

     "2017-08-26" : {

      "rate": 35.5

      }

     }

}

where ABC and DEF or 2017-08-25 and  2017-08-26 are the object property values and not the property names.


Viewing all articles
Browse latest Browse all 4850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>