/// <summary> /// JSON /// </summary> private void Dictionary() { var dictE = new JDictionaryEleme(); this.AddFather(this.pValueEleme, dictE); new DictionarySpan(this.PBParser, dictE).Init(); }
public override void Init() { this.pDictionaryEleme = this.NEleme as JDictionaryEleme; this.GetChar(); if (this._Char == '}') { } else if (Tools.StrStartChars.Contains(this._Char) || Tools.HasVarHead(this._Char) || char.IsNumber(this._Char)) { if (this.pDictionaryEleme.Dict == null) { this.pDictionaryEleme.Dict = new Dictionary <string, BEleme>(); } AddKeyValue(); } else { this.Error(); } }