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/JSON'. But at the API controller, the parameter value displays null instead of JSON. Typescript: createPO(product: string): Promise<string> { var headers = new Headers(); headers.append('Content-Type', 'application/json'); let options = new RequestOptions({ headers: headers }); return this._http.post(this._creatPOUrl