示例#1
0
 public string ToJSON(object obj, JSONParamters param)
 {
     _params = param;
     // FEATURE : enable extensions when you can deserialize anon types
     if (_params.EnableAnonymousTypes)
     {
         _params.UseExtensions = false; _params.UsingGlobalTypes = false;
     }
     return(new JSONSerializer(param).ConvertToJSON(obj));
 }
示例#2
0
 public string ToJSON(object obj)
 {
     _params = Parameters;
     return(ToJSON(obj, Parameters));
 }
示例#3
0
 internal JSONSerializer(JSONParamters param)
 {
     _params = param;
 }