Replacing Newtonsoft.Json with System.Text.Json (experimental)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text.Json;
|
||||
using System.Threading.Tasks;
|
||||
using Newtonsoft.Json;
|
||||
using Telegram.Bot.Types;
|
||||
using Telegram.Bot.Types.Enums;
|
||||
|
||||
@@ -126,7 +126,7 @@ public class MessageResult : ResultBase
|
||||
T cd = null;
|
||||
try
|
||||
{
|
||||
cd = JsonConvert.DeserializeObject<T>(RawData);
|
||||
cd = JsonSerializer.Deserialize<T>(RawData);
|
||||
|
||||
return cd;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user