1 type derived from JsonException
System.Text.Json (1)
94 instantiations of JsonException
Microsoft.AspNetCore.Components.Server (3)
Microsoft.AspNetCore.Components.Web (13)
Microsoft.AspNetCore.Components.WebAssembly (3)
Microsoft.AspNetCore.Components.WebView (3)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.OpenApi (6)
Microsoft.CodeAnalysis.LanguageServer.Protocol (25)
Microsoft.JSInterop (22)
Microsoft.ML.Tokenizers (1)
System.Text.Json (14)
System\Text\Json\ThrowHelper.Serialization.cs (13)
52throw new JsonException(SR.Format(SR.DeserializeUnableToConvertValue, propertyType)) { AppendPathInformation = true };
70throw new JsonException(SR.Format(SR.PropertyGetterDisallowNull, propertyName, declaringType)) { AppendPathInformation = true };
76throw new JsonException(SR.Format(SR.PropertySetterDisallowNull, propertyName, declaringType)) { AppendPathInformation = true };
82throw new JsonException(SR.Format(SR.ConstructorParameterDisallowNull, parameterName, declaringType)) { AppendPathInformation = true };
130throw new JsonException(SR.Format(SR.SerializationConverterRead, converter)) { AppendPathInformation = true };
136throw new JsonException(SR.Format(SR.SerializationConverterWrite, converter)) { AppendPathInformation = true };
142throw new JsonException(SR.Format(SR.SerializerCycleDetected, maxDepth)) { AppendPathInformation = true };
148throw new JsonException(message) { AppendPathInformation = true };
323throw new JsonException(SR.Format(SR.JsonRequiredPropertiesMissing, parent.Type, listOfMissingPropertiesBuilder.ToString()));
452throw new JsonException(message, path, ex.LineNumber, ex.BytePositionInLine, ex);
458JsonException jsonException = new JsonException(null, ex);
496JsonException jsonException = new JsonException(null, ex);
696throw new JsonException(SR.Format(SR.UnmappedJsonProperty, unmappedPropertyName, type));
169 references to JsonException
Aspire.Dashboard (1)
Aspire.Hosting (2)
Aspire.Hosting.Azure (2)
Aspire.Hosting.Azure.Functions (1)
Aspire.Hosting.Testing (1)
Microsoft.AspNetCore.Components.Server.Tests (6)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Extensions.Tests (6)
Microsoft.AspNetCore.Mvc.Core (2)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Microsoft.AspNetCore.SignalR.Tests (2)
Microsoft.Build (2)
Microsoft.CodeAnalysis.Features (1)
Microsoft.Extensions.Configuration.Json (1)
Microsoft.JSInterop.Tests (48)
Infrastructure\DotNetDispatcherTest.cs (10)
345Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, ""));
356Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, $"{{\"key\": \"{jsRuntime.LastInvocationAsyncHandle}\"}}"));
367Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, false"));
378Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, false, \"Hello\", 5]"));
535Assert.Throws<JsonException>(() =>
574var ex = Assert.Throws<JsonException>(() =>
758Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.ParseArguments(new TestJSRuntime(), "SomeMethod", arguments, new[] { typeof(string) }));
767Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.ParseArguments(new TestJSRuntime(), "SomeMethod", arguments, new[] { typeof(string) }));
776Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.ParseArguments(new TestJSRuntime(), "SomeMethod", arguments, new[] { typeof(string) }));
System.Text.Json (88)