how to get json string value?

Posted by Net205 on Stack Overflow See other posts from Stack Overflow or by Net205
Published on 2011-01-11T13:47:43Z Indexed on 2011/01/11 13:54 UTC
Read the original article Hit count: 160

Filed under:
|
var responseFromServer = "{\"flag\":true,\"message\":\"\",\"result\":{\"ServicePermission\":true,\"UserGroupPermission\":true}}";
var serializer = new System.Web.Script.Serialization.JavaScriptSerializer();
var responseValue = serializer.DeserializeObject(responseFromServer);

responseFromServer value is get a webservice, and then how to get the json string value, such as "flag","Servicepermission"??

© Stack Overflow or respective owner

Related posts about JSON

Related posts about serializer