Пример #1
0
        public string ToJsonText()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("\"");
            sb.Append(GetName());
            sb.Append("\": ");
            sb.Append(StringMaker.MakeStringFromJson(value));
            return(sb.ToString());
        }
Пример #2
0
        public string ToJsonText()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("[");
            if (elements.Count > 0)
            {
                foreach (object value in elements)
                {
                    sb.Append(StringMaker.MakeStringFromJson(value));
                    sb.Append(", ");
                }

                sb.Remove(sb.Length - 2, 2);
            }
            sb.Append("]");
            return(sb.ToString());
        }
Пример #3
0
 public string ToJsonText()
 {
     return(StringMaker.MakeStringFromJson(value));
 }