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)); }
public string ToJSON(object obj) { _params = Parameters; return(ToJSON(obj, Parameters)); }
internal JSONSerializer(JSONParamters param) { _params = param; }