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