Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
namespace AnotherDevBlog.Core.API
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using System.Web.Http.Results;
using Umbraco.Web.WebApi;
public class CustomDataController : UmbracoApiController
public JsonResult<string[]> GetData()
return Json(new[] { "One", "Two", "Three", "Four", "Five" }, new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver() });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.