1 type derived from JsonException
System.Text.Json (1)
137 instantiations of JsonException
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.Http.Extensions.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.JSInterop (22)
Microsoft.ML.Tokenizers (1)
Roslyn.VisualStudio.Next.UnitTests (2)
System.Text.Json (20)
System\Text\Json\ThrowHelper.Serialization.cs (17)
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()));
329throw new JsonException(SR.Format(SR.DuplicatePropertiesNotAllowed_JsonPropertyInfo, property.Name, property.DeclaringType));
335throw new JsonException(SR.Format(SR.DuplicatePropertiesNotAllowed));
341throw new JsonException(SR.Format(SR.DuplicatePropertiesNotAllowed_NameSpan, Truncate(name)));
348throw new JsonException(SR.Format(SR.DuplicatePropertiesNotAllowed_NameSpan, Truncate(name)));
492throw new JsonException(message, path, ex.LineNumber, ex.BytePositionInLine, ex);
498JsonException jsonException = new JsonException(null, ex);
536JsonException jsonException = new JsonException(null, ex);
736throw new JsonException(SR.Format(SR.UnmappedJsonProperty, unmappedPropertyName, type));
System.Windows.Forms.Tests (4)
212 references to JsonException
aspire (1)
Aspire.Dashboard (1)
Aspire.Hosting (2)
Aspire.Hosting.Azure (1)
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.Identity (10)
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.Build (2)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.Extensions.AI.Abstractions (5)
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)
System.Text.Json (93)