I have a WCF service that returns a JSON object. Is there an easy way of wrapping this JSON data in parentheses and add the callback name?
For anyone that suggests JSONP, I don't want my WCF service to support JSONP. So that's not an option.
Currently, it returns this:
[
{
"val1": "GWh",
"val2": 32203,
"val3": "2008"
},
{
"val1": "GWh",
"val2": 27568,
"val3": "2007"
}
]
It needs to return this with the callback and the parenthesis:
callback([
{
"val1": "GWh",
"val2": 32203,
"val3": "2008"
},
{
"val1": "GWh",
"val2": 27568 ...
Go to the complete details ...