hi
the solution for the above issue is
1. instead of
public string GetEmployees()
i change it to
public Void GetEmployees()
2.instead of returning the result i used the following code
this.Context.Response.ContentType = "application/json; charset=utf-8";
this.Context.Response.Write(serializer.Serialize(new { Cargo = rows }));
Once i did this now i get the result what i really want:
Here is my output:(i'm not getting xml strings)
{"Cargo":[{"Id":1,"FirstName":"devi","LastName":"priya ","Contactno":"965577796 "},{"Id":2,"FirstName":"arun","LastName":"kumar","Contactno":"9944142109"},{"Id":3,"FirstName":"karu","LastName":"ronald","Contactno":"8883205008"}]}