예제 #1
0
        public string ToJSON()
        {
            JSONBuilder jb = new JSONBuilder();

            if (vals.Length == 1)
            {
                jb.addPrimitive(name, vals[0]);
            }
            else
            {
                jb.addPrimitiveArray(name, vals);
            }

            return(jb.ToString());
        }
예제 #2
0
 public void addToJSON(JSONBuilder jb)
 {
     jb.addPrimitiveArray(typeof(T).Name, arr);
     jb.closeMe();
 }