c# - Pass string with Quote in Json result -


JSONP wants to send a response to the browser that requested on REST

< P> service I use something like which contains some quotes in the Administrator method:

  Return Jason ("Blah" blah, JsonRequestBehavior.AllowGet);  

And I hope the result will be blah "blah but blah \ blah and is also included back slash! I have to do blah "blah in response to a conversion without any conversions on the client side. I know that it needs to be done through the C # code, but how to do it? Thank you.

C # and JSON encoded characters equally The string blah "blah is encoded in both C # and JSON because " blah \ "blah" . It is absolutely hoped that your raw JSON contains a backslash.

When you decode that string with the proper JSON library, that string becomes blah "blah .


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -