30 references to Object
Microsoft.AspNetCore.Authentication.OAuth (2)
JsonKeyClaimAction.cs (1)
46else if (value.ValueKind == JsonValueKind.Object || value.ValueKind == JsonValueKind.Undefined)
JsonSubKeyClaimAction.cs (1)
58&& value.ValueKind == JsonValueKind.Object
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
ConverterTests\JsonElementComparer.cs (2)
61case JsonValueKind.Object: 141case JsonValueKind.Object:
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Infrastructure\DefaultTempDataSerializer.cs (1)
66case JsonValueKind.Object:
Microsoft.CodeAnalysis.Features (2)
PdbSourceDocument\SourceLinkMap.cs (2)
73if (root.ValueKind != JsonValueKind.Object) 86if (rootEntry.Value.ValueKind != JsonValueKind.Object)
Microsoft.Extensions.AI (2)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (2)
201if (schemaElement.ValueKind is JsonValueKind.Object) 222JsonValueKind.Object => JsonObject.Create(element),
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Schema.cs (1)
367case JsonValueKind.Object:
Microsoft.Extensions.AI.Abstractions.Tests (1)
Contents\FunctionCallContentTests..cs (1)
289Assert.True(kvp.Value is JsonElement { ValueKind: JsonValueKind.Object });
Microsoft.Extensions.AI.OpenAI (1)
OpenAIModelMapper.ChatCompletion.cs (1)
220case JsonValueKind.Object:
Microsoft.Extensions.Configuration.Json (2)
JsonConfigurationFileParser.cs (2)
33if (doc.RootElement.ValueKind != JsonValueKind.Object) 87case JsonValueKind.Object:
System.Text.Json (16)
System\Text\Json\Document\JsonElement.cs (9)
94/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Object"/>. 122/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Object"/>. 168/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Object"/>. 207/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Object"/>. 247/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Object"/>. 288/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Object"/>. 324/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Object"/>. 1324Debug.Assert(kind is JsonValueKind.Object); 1599/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Object"/>.
System\Text\Json\Nodes\JsonObject.cs (4)
64JsonValueKind.Object => new JsonObject(element, options), 65_ => throw new InvalidOperationException(SR.Format(SR.NodeElementWrongType, nameof(JsonValueKind.Object))) 71Debug.Assert(element.ValueKind == JsonValueKind.Object); 168private protected override JsonValueKind GetValueKindCore() => JsonValueKind.Object;
System\Text\Json\Reader\JsonReaderHelper.cs (1)
58return JsonValueKind.Object;
System\Text\Json\Serialization\Converters\Node\JsonNodeConverter.cs (1)
69case JsonValueKind.Object:
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (1)
358if (element.ValueKind == JsonValueKind.Object)