/// <summary> /// 对象转换JSON字符串(单线程模式) /// </summary> /// <typeparam name="valueType">目标数据类型</typeparam> /// <param name="value">数据对象</param> /// <param name="config">配置参数</param> /// <returns>Json字符串</returns> private string serializeThreadStatic <valueType>(ref valueType value, SerializeConfig config) { Config = config ?? DefaultConfig; CharStream.Clear(); serialize(ref value); return(CharStream.ToString()); }