Skip to content Skip to sidebar Skip to footer

Post From Typescript To Web Api Api, Unable To Pass A Json Object

I am trying to pass a JSON Object from a typescript POST call to a Web API method. Fiddler shows that the object has been converted into JSON and the Content-Type is 'application/

Solution 1:

In Angular 2, when posting JSON with the Http client, you should not call JSON.stringify:

this._http.post(this._creatPOUrl, product, options)

Post a Comment for "Post From Typescript To Web Api Api, Unable To Pass A Json Object"