Beispiel #1
0
        public SecretNode ParseJsonObject(JsonDocument data)
        {
            var ret = new SecretNode("");

            foreach (var property in data.RootElement.EnumerateObject())
            {
                ret.AddChild(property.Name, new SecretValue("", property.Value.GetString() ?? ""));
            }

            ret.SortThisAndChildren();
            Root = ret;
            return(ret);
        }
Beispiel #2
0
 public SecretFileHolder(IFile file, JsonDocument data)
 {
     this.file = file;
     Root      = ParseJsonObject(data);
 }