1 write to JsonSerializerOptions
Microsoft.JSInterop.Tests (1)
Infrastructure\JSObjectReferenceJsonConverterTest.cs (1)
16JsonSerializerOptions = JSRuntime.JsonSerializerOptions;
7 references to JsonSerializerOptions
Microsoft.JSInterop.Tests (7)
Infrastructure\JSObjectReferenceJsonConverterTest.cs (7)
17JsonSerializerOptions.Converters.Add(new JSObjectReferenceJsonConverter(JSRuntime)); 27var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<IJSObjectReference>(json, JsonSerializerOptions)); 38var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<IJSObjectReference>(json, JsonSerializerOptions)); 49var ex = Record.Exception(() => JsonSerializer.Deserialize<IJSObjectReference>(json, JsonSerializerOptions)); 60var ex = Record.Exception(() => JsonSerializer.Deserialize<IJSObjectReference>(json, JsonSerializerOptions)); 72var deserialized = (JSObjectReference)JsonSerializer.Deserialize<IJSObjectReference>(json, JsonSerializerOptions)!; 85var json = JsonSerializer.Serialize((IJSObjectReference)jsObjectRef, JsonSerializerOptions);