Update json 2 sql

This commit is contained in:
sunkaixuan
2023-06-22 17:15:39 +08:00
parent 2213f5cf1a
commit 797410f5a5

View File

@@ -1,4 +1,5 @@
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -36,7 +37,9 @@ namespace SqlSugar
}
private bool IsFieldName(JToken item)
{
return item.ObjToString().ToLower().Contains("fieldname");
return
item?.GetType() == typeof(JObject)&&
item.ObjToString().ToLower().Contains("fieldname");
}
private bool IsArraySingleItem(JToken item)
{