This is my JSON file click me !
Following,C# classes from JSON
public class SiteNode
{
public string url;
public string[] param;
public string serviceid;
public bool is_enabled;
public string icon;
public string nodetype;
public string api;
public NodeMeta meta;
public class NodeMeta
{
public bool is_module_legal;
public string module;
public string func;
public MuiText title;
public MuiText desc;
public string group;
public List<string> granted_roles;
}
public class MuiText
{
public string tw;
public string gb;
public string en;
}
public List<SiteNode> children;
}
I have already use the JavaScriptSerializer.Deserialize method to convert to List ,But I have no idea to find serviceid==System-016 this object.
Special attention to the object in Json file can be changed location,So I think to use recursive to process this problem.
Please, provide me a solution,Thanks a lot!