Hi,
 
Try putting below code in Application_Start
 
Code
var json = GlobalConfiguration.Configuration.Formatters.JsonFormatter;
 json.SerializerSettings.Formatting = Newtonsoft.Json.Formatting.Indented;
 
Please go through below articles -
 
https://www.asp.net/web-api/overview/formats-and-model-binding/json-and-xml-serialization
 
http://stackoverflow.com/questions/15803583/mvc-4-web-api-json-serialization-for-custom-objects