public List <JsonObject> FindChildren(string path) { if (path == "") { return(_items); } var result = new List <JsonObject>(); foreach (var o in _items) { JsonObject.FindChildren(o, path, result); } return(result); }
public List <JsonObject> FindChildrenByRegex(string pattern) { var reg = new Regex(pattern); var result = new List <JsonObject>(); foreach (var o in _items) { if (pattern == "") { JsonObject.FindAllChildren(o, result); } else { JsonObject.FindChildren(o, reg, result); } } return(result); }