Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Have you tried sending it as a string variable? type string jsonSource wait in controller method on input? Controllers are strongly typed and bound to variable names. Personally, only generic types like Object, String come to my mind. But in the case of Object - it is necessary to cast the type, but it is not clear what.
Something like this on the client side:
$.ajax({
type: "POST",
url: "/Controller/Action",
contentType: "application/json; charset=utf-8",
dataType: "json",
data: JSON.stringify(yourJsonObject),
...
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question