ReadAsJson
This commit is contained in:
1 parent
9470a6160a
commit
d05df2df9b
2 files changed
+14
-3
No files matched your search
@@ -399,7 +399,7 @@ public static class StringExtensions {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 将字符串转化为 JSON 对象。
|
||||
/// 将字符串转化为 JSON 对象,若失败则抛出异常。
|
||||
/// </summary>
|
||||
public static JToken? DeserializeJson(this string data) {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user