Content negotiation is one of the strong pointy in web api and thats pretty cool.
Now i can just change the type of response via url only.
To achieve this just add the following one line of code
GlobalConfiguration.Configuration.Formatters.JsonFormatter.MediaTypeMappings.Add(new QueryStringMapping(“format”, “json”, “application/json”));
Now i can get json via url :