Adding array title to Linq-to-SQL-to-JSON in Web API Adding array title to Linq-to-SQL-to-JSON in Web API json json

Adding array title to Linq-to-SQL-to-JSON in Web API


Just to rephrase your answer, when you return the IHttpActionResult, just assign the query result to a named property and return it like:

return Ok(new { OnlineXs = xs});