Skip to content

Commit b3407d6

Browse files
refactor: add using System.Text.Json to remove fully qualified name - Add using System.Text.Json directive to imports
1 parent d40864e commit b3407d6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Sitecore.AspNetCore.SDK.RenderingEngine/TagHelpers/Fields/ImageTagHelper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Reflection;
2+
using System.Text.Json;
23
using HtmlAgilityPack;
34
using Microsoft.AspNetCore.Html;
45
using Microsoft.AspNetCore.Mvc.Rendering;
@@ -233,7 +234,7 @@ public override void Process(TagHelperContext context, TagHelperOutput output)
233234
try
234235
{
235236
// We need to use Dictionary<string, object>[] to ensure proper deserialization of JSON objects into dictionaries that our GetWidthDescriptor method can handle
236-
return System.Text.Json.JsonSerializer.Deserialize<Dictionary<string, object>[]>(jsonString, JsonLayoutServiceSerializer.GetDefaultSerializerOptions());
237+
return JsonSerializer.Deserialize<Dictionary<string, object>[]>(jsonString, JsonLayoutServiceSerializer.GetDefaultSerializerOptions());
237238
}
238239
catch (Exception ex)
239240
{

0 commit comments

Comments
 (0)