Beispiel #1
0
 public                            JsonTreeNode this[String key]
 {
     get
     {
         return(this[Utf8String.From(key)]);
     }
 }
Beispiel #2
0
        static Utf8String GetKeyFromParent(JsonTreeNode json)
        {
            var parent = json.Parent;

            if (parent.IsArray())
            {
                var index = parent.IndexOf(json);
                return(Utf8String.From(index));
            }
            else if (parent.IsObject())
            {
                return(parent.KeyOf(json));
            }
            else
            {
                throw new NotImplementedException();
            }
        }
 public static void Key(this JsonFormatter f, string x)
 {
     f.Key(Utf8String.From(x));
 }
Beispiel #4
0
 public static JsonTreeNode Parse(String json)
 {
     return(Parse(Utf8String.From(json)));
 }
Beispiel #5
0
        public static bool ContainsKey(this JsonTreeNode self, String key)
        {
            var ukey = Utf8String.From(key);

            return(self.ContainsKey(ukey));
        }
Beispiel #6
0
 public static JsonTreeNode GetObjectItem(this JsonTreeNode self, String key)
 {
     return(self.GetObjectItem(Utf8String.From(key)));
 }
Beispiel #7
0
 public void Value(string x)
 {
     Value(Utf8String.From(x));
 }