1 type derived from JsonException
System.Text.Json (1)
163 instantiations of JsonException
aspire (8)
Aspire.Cli.Tests (2)
Aspire.Dashboard (7)
Aspire.Dashboard.Tests (1)
cdac-build-tool (4)
Microsoft.AspNetCore.Components.Server (3)
Microsoft.AspNetCore.Components.Web (13)
Microsoft.AspNetCore.Identity (2)
Microsoft.Diagnostics.DataContractReader (22)
Microsoft.DotNet.HotReload.Utils.Generator.Data (2)
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)
Microsoft.TemplateEngine.Edge (1)
NuGet.ProjectModel (12)
NuGet.Protocol (23)
Plugins\MessageConverter.cs (8)
110throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, nameof(Message.RequestId)));
116throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.ArgumentCannotBeNullOrEmpty, nameof(Message.RequestId)));
121throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, nameof(Message.Type)));
127throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Plugin_UnrecognizedEnumValue, typeStr));
132throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, nameof(Message.Method)));
138throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Plugin_UnrecognizedEnumValue, methodStr));
146throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnexpectedPayloadTokenType, payloadProp.ValueKind));
163throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Plugin_UnrecognizedEnumValue, $"{messageMethod}/{messageType}"));
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);
560JsonException jsonException = new JsonException(null, ex);
760throw new JsonException(SR.Format(SR.UnmappedJsonProperty, unmappedPropertyName, type));
214 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)
dotnet (3)
dotnet-sourcelink (1)
ILCompiler.Compiler (1)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Identity (11)
Microsoft.AspNetCore.Mvc.Core (2)
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Microsoft.Build (2)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.DotNet.Cli.Definitions (1)
Microsoft.DotNet.HotReload.Utils.Generator (1)
Microsoft.DotNet.HotReload.Utils.Generator.Tasks (1)
Microsoft.DotNet.HotReload.Watch (2)
Microsoft.DotNet.ProjectTools (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.SourceLink.Tools.Package (1)
Microsoft.TemplateEngine.Cli (1)
Microsoft.TemplateEngine.Edge (2)
NuGet.Packaging (1)
NuGet.ProjectModel (2)
NuGet.Protocol (2)
System.Text.Json (104)