You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicstaticclassStubbleJson{publicstaticRendererSettingsBuilderAddSystemTextJson(thisRendererSettingsBuilderbuilder){foreach(vargetterinValueGetters){builder.AddValueGetter(getter.Key,getter.Value);}builder.AddSectionBlacklistType(typeof(JsonElement));returnbuilder;}publicstaticreadonlyDictionary<Type,RendererSettingsDefaults.ValueGetterDelegate>ValueGetters=new(){{typeof(JsonElement),(value,key,ignoreCase)=>{vartoken=(JsonElement)value;varcomparison=ignoreCase?StringComparison.OrdinalIgnoreCase:StringComparison.Ordinal;JsonPropertychildToken=token.EnumerateObject().FirstOrDefault(o =>string.Equals(o.Name,key,comparison));varchildValue=childToken.Value;returnchildValue.ValueKindswitch{JsonValueKind.Array=>childValue.EnumerateArray(),JsonValueKind.Object=>childValue,JsonValueKind.Undefined or JsonValueKind.Null=>null,JsonValueKind.String=>childValue.GetString(),JsonValueKind.Number=>childValue.GetDecimal(),JsonValueKind.True=>true,JsonValueKind.False=>false,};}},};}
Please provide the extension support for [System.text.Json serilization] (https://learn.microsoft.com/en-us/dotnet/api/system.text.json?view=net-7.0) as in documentation only support for System.Data or Newtonsoft.Json
The text was updated successfully, but these errors were encountered: