Skip to content

Instantly share code, notes, and snippets.

@darrelmiller
Last active August 29, 2015 14:00
Show Gist options
  • Save darrelmiller/11194792 to your computer and use it in GitHub Desktop.
Save darrelmiller/11194792 to your computer and use it in GitHub Desktop.
public class JsonStringController : ApiController
{
public HttpResponseMessage Post([FromBody]string jsonBody)
{
var myobject = Newtonsoft.Json.JsonConvert.DeserializeObject<MyObject>(jsonBody)
return new HttpResponseMessage(HttpStatusCode.Created);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment