1 type derived from JsonException
System.Text.Json (1)
155 instantiations of JsonException
aspire (8)
Aspire.Cli.Tests (2)
Aspire.Dashboard (7)
Aspire.Dashboard.Tests (1)
IdentitySample.PasskeyConformance (1)
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.Identity (2)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (4)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (6)
Microsoft.AspNetCore.OpenApi (6)
Microsoft.CodeAnalysis.LanguageServer.Protocol (25)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.AI.Evaluation.Reporting (8)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (8)
Microsoft.Extensions.AI.OpenAI.Tests (1)
Microsoft.JSInterop (22)
Microsoft.ML.Tokenizers (1)
Roslyn.VisualStudio.Next.UnitTests (2)
System.Text.Json (21)
System\Text\Json\ThrowHelper.Serialization.cs (18)
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 };
318throw new JsonException(SR.Format(SR.JsonRequiredPropertiesMissing, parent.Type, builder.ToString()));
324throw new JsonException(SR.Format(SR.JsonRequiredPropertiesMissing, type, propertyList));
351throw new JsonException(SR.Format(SR.DuplicatePropertiesNotAllowed_JsonPropertyInfo, property.Name, property.DeclaringType));
357throw new JsonException(SR.DuplicatePropertiesNotAllowed);
363throw new JsonException(SR.Format(SR.DuplicatePropertiesNotAllowed_NameSpan, Truncate(name)));
370throw new JsonException(SR.Format(SR.DuplicatePropertiesNotAllowed_NameSpan, Truncate(name)));
514throw new JsonException(message, path, ex.LineNumber, ex.BytePositionInLine, ex);
520JsonException jsonException = new JsonException(null, ex);
558JsonException jsonException = new JsonException(null, ex);
758throw new JsonException(SR.Format(SR.UnmappedJsonProperty, unmappedPropertyName, type));
System.Windows.Forms.Tests (4)
256 references to JsonException
aspire (22)
Aspire.Cli.Tests (6)
Aspire.Dashboard (7)
Aspire.Dashboard.Tests (1)
Aspire.Hosting (4)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Azure.Functions (1)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Docker (1)
Aspire.Hosting.JavaScript (1)
Aspire.Hosting.OpenAI (1)
Aspire.Hosting.RemoteHost (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.Identity (11)
Microsoft.AspNetCore.Identity.Test (2)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (4)
Microsoft.AspNetCore.Mvc.Core (2)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Microsoft.AspNetCore.SignalR.Tests (2)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.Extensions.AI.Abstractions (6)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.AI.Evaluation.Quality (4)
Microsoft.Extensions.AI.Evaluation.Tests (6)
Microsoft.Extensions.AI.Integration.Tests (1)
Microsoft.Extensions.AI.Tests (2)
Microsoft.Extensions.Configuration.Json (1)
Microsoft.JSInterop.Tests (48)
Infrastructure\DotNetDispatcherTest.cs (10)
346Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, ""));
357Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, $"{{\"key\": \"{jsRuntime.LastInvocationAsyncHandle}\"}}"));
368Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, false"));
379Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, false, \"Hello\", 5]"));
572Assert.Throws<JsonException>(() =>
611var ex = Assert.Throws<JsonException>(() =>
795Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.ParseArguments(new TestJSRuntime(), "SomeMethod", arguments, new[] { typeof(string) }));
804Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.ParseArguments(new TestJSRuntime(), "SomeMethod", arguments, new[] { typeof(string) }));
813Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.ParseArguments(new TestJSRuntime(), "SomeMethod", arguments, new[] { typeof(string) }));
Roslyn.VisualStudio.Next.UnitTests (1)
Sample (3)
artifacts\obj\Sample\Release\net11.0\generated\Microsoft.AspNetCore.OpenApi.SourceGenerators\Microsoft.AspNetCore.OpenApi.SourceGenerators.XmlCommentGenerator\OpenApiXmlCommentSupport.generated.cs (2)
639catch (JsonException)
646catch (JsonException)
System.Text.Json (98)