Exemple #1
0
            public override string ToString(string Name_, string Indentation_)
            {
                string Str = Indentation_ + JsonGlobal.GetNameString(Name_) + '{';

                Indentation_ = Indentation_.PushIndentation();

                if (_JsonDataArray.Count > 0)
                {
                    Str += '\n';
                    Str += _JsonDataArray[0].ToString(_Names[0], Indentation_);
                }

                for (Int32 i = 1; i < _JsonDataArray.Count; ++i)
                {
                    Str += ",\n";
                    Str += _JsonDataArray[i].ToString(_Names[i], Indentation_);
                }
                Str += '\n';

                Indentation_ = Indentation_.PopIndentation();
                Str         += Indentation_;
                Str         += '}';

                return(Str);
            }
Exemple #2
0
            public override string ToString(string Name_, string Indentation_)
            {
                string Str = Indentation_ + JsonGlobal.GetNameString(Name_) + "[\n";

                Indentation_ = Indentation_.PushIndentation();

                if (_Array.Count > 0)
                {
                    Str += _Array[0].ToString("", Indentation_);
                }

                for (int i = 1; i < _Array.Count; ++i)
                {
                    Str += ",\n";
                    Str += _Array[i].ToString("", Indentation_);
                }
                Str += "\n";

                Indentation_ = Indentation_.PopIndentation();
                Str         += Indentation_;
                Str         += "]";

                return(Str);
            }
Exemple #3
0
 public override string ToString(string Name_, string Indentation_)
 {
     return(Indentation_ + JsonGlobal.GetNameString(Name_) + _Data.ToString());
 }