Exemple #1
0
        public string ToJson(bool supportKeyNumber)
        {
            switch (valueType)
            {
            case scriptValueType: return(scriptValue.ToJson(supportKeyNumber));

            case doubleValueType: return(doubleValue.ToString());

            case longValueType: return(longValue.ToString());

            case trueValueType: return("true");

            case falseValueType: return("false");

            case stringValueType: return(Util.ParseJsonString(stringValue));

            case nullValueType: return("null");

            case objectValueType: return(Util.ParseJsonString(objectValue.ToString()));

            default: return("");
            }
        }