public object GenerateUser(JsonMember.UserDetails obj) { string Det = JsonConvert.SerializeObject(UserMaster.GenerateUser(obj), Formatting.Indented); return(Det.Replace("\r", "").Replace("\n", "")); }