Posting JSON to Editor for .NET
Posting JSON to Editor for .NET
fabiomoggi
Posts: 9Questions: 4Answers: 0
Does Editor for .NET support JSON to process a web request and update data on Sql Server?
I have set a HTTP Request to POST and added JSON content to the body, however, when the .NET Web API receives the JSON content, Editor does not update the database. It seems like only works with encoded url parameters to the POST request.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The Editor .NET libraries will use HTTP parameters yes. That is the default behaviour for Editor on the client-side (to send data as HTTP parameters rather than JSON data), so the .NET libraries weren't designed to accept data from a different data source.
As you using
ajax.data
to submit as JSON in the body rather than allowing the default. Can you just remove that to allow the default and thus let the .NET libraries work?Allan
Thanks for the quick response, Allan.
Since I can't use Editor to process JSON in the backend, I am considering another framework to work with. Still I can use Editor in the front-end web app.