Author: troy.bennett | Posted on: 9/21/2008 5:46:47 PM | Views : 372

I get a string from an external REST service that returns JSON and store it as a string. Is there a way to return that string as a JSON object without derserializing it?
  
[WebMethod]
[ScriptMethod(UseHttpGet = true, ResponseFormat=ResponseFormat.Json)]
public string GetJson(string url, int cacheDuration)
{
//queryResponse = response from external REST service
string queryResponse = {"name":"bob","phone":["555-555-1212", "333-333-2222"]};
return queryResponse;
}
 Client side:

 Go to the complete details ...