public JsonTreeNode this[String key] { get { return(this[Utf8String.From(key)]); } }
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)); }
public static JsonTreeNode Parse(String json) { return(Parse(Utf8String.From(json))); }
public static bool ContainsKey(this JsonTreeNode self, String key) { var ukey = Utf8String.From(key); return(self.ContainsKey(ukey)); }
public static JsonTreeNode GetObjectItem(this JsonTreeNode self, String key) { return(self.GetObjectItem(Utf8String.From(key))); }
public void Value(string x) { Value(Utf8String.From(x)); }