We are having an issue with IRestRequest. When trying to consume a JSON request, if there is a & in a Json String, IRestRequest is breaking the request Form input more then 1 variable which is causing issues.
How can we resolve this?
We are having an issue with IRestRequest. When trying to consume a JSON request, if there is a & in a Json String, IRestRequest is breaking the request Form input more then 1 variable which is causing issues.
How can we resolve this?
Also if you are accepting JSON, why are you reading request.Form? If you are passing in JSON as the request, you need to read the body raw then deserialize
So do not read the Form, read the body into a Stream/String then deserialze. Also JSON is not UrlEncoded, it will need specific Javascript encoding.
So do not read the Form, read the body into a Stream/String then deserialze. Also JSON is not UrlEncoded, it will need specific Javascript encoding.