Monthly Archives: April 2017

webapi – remove web api json string only

by default web api return is xml only. even return json string, but it is still embedded inside an xml file. for example: 1 2 3 <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/"> [{"Id":1,"Name":"Glenn Block"},{"Id":2,"Name":"Dan Roth"}] </string><string xmlns="http://schemas.microsoft.com/2003/10/Serialization/"> [{"Id":1,"Name":"Glenn Block"},{"Id":2,"Name":"Dan Roth"}] </string> in WebApiConfig.cs: 1 … Continue reading

Posted in Uncategorized | Comments Off on webapi – remove web api json string only