I have found solution ... Post json always null. By this manual I changed type of input variable in Post method from string to object by json structure.
You was right ... before this try I was really using curl without -H "Content-Type: appplication/json" and verbose mode wrote me then I am using "application/x-www-form-urlencoded", but with -H "Content-Type: appplication/json" does not work JSON with = and regular JSON too
still return...
I would like to process JSON in WepAPI 2.0 and in the JSON file must be = as a first char.
If I post normal JSON [{ ... }] visual studio return NULL exception and variable "value" is NULL
namespace MyProgram.Controllers
{
public class TestController : ApiController
{
// POST...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.