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