93 references to JsonObject
Aspire.Dashboard (1)
Otlp\Model\OtlpHelpers.cs (1)
147var o = new JsonObject();
Aspire.Dashboard.Tests (9)
Integration\OtlpGrpcServiceTests.cs (6)
164var configJson = new JsonObject 166["Dashboard"] = new JsonObject 168["Otlp"] = new JsonObject 206configJson = new JsonObject 208["Dashboard"] = new JsonObject 210["Otlp"] = new JsonObject
Integration\StartupTests.cs (3)
514var configJson = new JsonObject 516["Logging"] = new JsonObject 518["LogLevel"] = new JsonObject
Aspire.Hosting (1)
src\Shared\SecretsStore.cs (1)
54var contents = new JsonObject();
Aspire.Hosting.Azure (4)
Provisioning\JsonExtensions.cs (1)
18node = new JsonObject();
Provisioning\Provisioners\BicepProvisioner.cs (3)
177var parameters = new JsonObject(); 179var scope = new JsonObject(); 463parameters[parameter.Key] = new JsonObject()
Aspire.Hosting.Azure.Tests (22)
AzureBicepProvisionerTests.cs (19)
25var parameters = new JsonObject(); 56.WithParameter("jsonObj", new JsonObject { ["key"] = "value" }) 61var parameters = new JsonObject(); 104.WithParameter("jsonObj", new JsonObject { ["key"] = "value" }); 110.WithParameter("jsonObj", new JsonObject { ["key"] = "value" }); 112var parameters0 = new JsonObject(); 116var parameters1 = new JsonObject(); 167.WithParameter("jsonObj", new JsonObject { ["key"] = "value" }); 169var parameters0 = new JsonObject(); 173var parameters1 = new JsonObject(); 197var parameters0 = new JsonObject(); 223var parameters0 = new JsonObject(); 224var scope0 = new JsonObject(); 229var parameters1 = new JsonObject(); 230var scope1 = new JsonObject(); 251var parameters0 = new JsonObject(); 252var scope0 = new JsonObject(); 257var parameters1 = new JsonObject(); 258var scope1 = new JsonObject();
AzureBicepResourceTests.cs (1)
188.WithParameter("param3", new JsonObject() { ["value"] = "nested" })
AzureEventHubsExtensionsTests.cs (1)
448document["UserConfig"]!["LoggingConfig"] = new JsonObject { ["Type"] = "Console" };
AzureServiceBusExtensionsTests.cs (1)
594document["UserConfig"]!["Logging"] = new JsonObject { ["Type"] = "Console" };
ConfigurationSchemaGenerator (11)
ConfigSchemaEmitter.cs (11)
44var root = new JsonObject(); 62var categoryNode = new JsonObject(); 67parent["definitions"] = new JsonObject 69["logLevel"] = new JsonObject 140pathSegmentNode = new JsonObject(); 246propertiesNode = new JsonObject(); 286var propertyNode = new JsonObject(); 319var containerNode = new JsonObject(); 632new JsonObject 637new JsonObject 640["items"] = new JsonObject
dotnet-user-jwts (5)
Helpers\JwtAuthenticationSchemeSettings.cs (4)
22var settingsObject = new JsonObject 38authentication.Add(SchemesKey, new JsonObject 46config[AuthenticationKey] = new JsonObject 48[SchemesKey] = new JsonObject
Helpers\SigningKeysHandler.cs (1)
75secrets ??= new JsonObject();
Microsoft.AspNetCore.OpenApi (6)
Extensions\JsonNodeSchemaExtensions.cs (1)
378var mappings = new JsonObject();
Schemas\OpenApiJsonSchema.Helpers.cs (1)
152var obj = new JsonObject();
Services\Schemas\OpenApiSchemaService.cs (4)
66schema = new JsonObject 75schema = new JsonObject 78[OpenApiSchemaKeywords.ItemsKeyword] = new JsonObject 91schema = new JsonObject();
Microsoft.DotNet.Internal.SymbolHelper (3)
SymbolPromotionHelper.cs (3)
103JsonObject registrationPayload = new() 123JsonObject visibilityPayload = new() 252JsonObject extensionPayload = new()
Microsoft.Extensions.AI (2)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (2)
184schema = JsonSerializer.SerializeToElement(new JsonObject 188{ "properties", new JsonObject { { "data", JsonElementToJsonNode(schemaElement) } } },
Microsoft.Extensions.AI.Abstractions (4)
Utilities\AIJsonUtilities.Schema.cs (4)
73JsonObject parameterSchemas = new(); 114JsonObject schema = new(); 235return new JsonObject { [TypePropertyName] = null }; 375schema = obj = new() { [NotPropertyName] = true };
Microsoft.Extensions.AI.Abstractions.Tests (2)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
108yield return new TestData<JsonObject>(new() { ["x"] = 42 }, """{"type":["object","null"]}""");
Utilities\AIJsonUtilitiesTests.cs (1)
229? new JsonObject
MSBuild (10)
JsonOutputFormatter.cs (9)
21private readonly JsonNode _topLevelNode = new JsonObject(); 37JsonNode propertiesNode = new JsonObject(); 55JsonNode itemsNode = new JsonObject(); 61JsonObject jsonItem = new(); 91JsonObject itemsNode = new(); 97JsonObject jsonItem = new(); 132JsonObject targetResultsNode = new(); 136JsonObject targetResults = new(); 141JsonObject jsonItem = new();
XMake.cs (1)
4663var jsonNode = new JsonObject();
ServiceBus.AppHost (1)
Program.cs (1)
36document["UserConfig"]!["Logging"] = new JsonObject { ["Type"] = "Console" };
Shared.Tests (1)
JsonSchemaExporter\TestTypes.cs (1)
108yield return new TestData<JsonObject>(new() { ["x"] = 42 }, """{"type":["object","null"]}""");
Stress.ApiService (1)
Program.cs (1)
232var jsonWithUrl = new JsonObject
System.Text.Json (7)
System\Text\Json\Nodes\JsonObject.cs (4)
36public JsonObject(IEnumerable<KeyValuePair<string, JsonNode?>> properties, JsonNodeOptions? options = null) : this(options) 69internal JsonObject(JsonElement element, JsonNodeOptions? options = null) : this(options) 91: new JsonObject(Options); 94var jObject = new JsonObject(Options)
System\Text\Json\Schema\JsonSchema.cs (2)
158var objSchema = new JsonObject(); 192var properties = new JsonObject();
System\Text\Json\Serialization\Converters\Node\JsonObjectConverter.cs (1)
15jsonTypeInfo.CreateObjectForExtensionDataProperty = () => new JsonObject(options.GetNodeOptions());
TestProject.AppHost (3)
TestProgram.cs (3)
159var root = new JsonObject(); 162var projectJson = new JsonObject(); 176var endpointJsonObject = new JsonObject