Beispiel #1
0
        public string ObjectEnd(int indent)
        {
            StringBuilder sb = new StringBuilder();

            SJSON.WriteNewLine(sb, indent);
            sb.Append("}");
            return(sb.ToString());
        }
Beispiel #2
0
        public string ArrayStart(int indent)
        {
            StringBuilder sb = new StringBuilder();

            SJSON.WriteNewLine(sb, indent);
            sb.Append("[");
            return(sb.ToString());
        }
Beispiel #3
0
        public string ObjectStart(string key, int indent)
        {
            StringBuilder sb = new StringBuilder();

            SJSON.WriteNewLine(sb, indent);
            sb.Append(key);
            sb.Append(" = {");
            return(sb.ToString());
        }
Beispiel #4
0
        public string ArrayItem(object o, int indent)
        {
            if (o == null)
            {
                return("");
            }
            StringBuilder sb = new StringBuilder();

            SJSON.WriteNewLine(sb, indent);
            SJSON.Write(o, sb, indent);
            return(sb.ToString());
        }