Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Return as "Json Object" instead of a "string".

$
0
0

I want to know how to return json1 as a "Json Object" instead of a "string".

 [WebMethod]
        public static string getJson()
        {
             ...
            var serializer = new System.Web.Script.Serialization.JavaScriptSerializer();
            var json1 = serializer.Serialize(gvlist).ToString();
            return json1;
        }


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>