.net - Return JSON wrapped in a callback function from a WCF REST web service -


I have a web service that is returning to JSON, but now let me give callers permission to specify a callback function Want to modify it goes back to: JSON data specified function (Jasonan Data); The way I'm returning to JSON, just returning an example of an object and doing its serialization magic, if I only return a string, then I can add the name of the function and the bracket around the data but if I return Ends with quotation marks, because it is a string and I do not want those people. So how can I go about it?

The reason for this is that we want developers to call our API to use dynamic script tags, as explained

See:

This is a wrapping encoder on Code> JasonEpncoder WCF JSON Encoder for wrapped encoder Most call represents Outgoing message with callback method Override WriteMesage for pad. JsonBehavior is used to enable JSONP encoding for that operation. The query parameter URI with the callback function name is specified as the property of the CallBack behavior.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -