384 instantiations of JsonArray
aspire (26)
Agents\AgentClient.cs (4)
34["args"] = new JsonArray("agent", "mcp"), 39["tools"] = new JsonArray("*") 69["command"] = new JsonArray("aspire", "agent", "mcp"), 91["args"] = new JsonArray("agent", "mcp")
Agents\Hooks\TelemetryHookConfigurator.cs (5)
130["postToolUse"] = new JsonArray( 135["args"] = new JsonArray(args.Select(arg => (JsonNode?)JsonValue.Create(arg)).ToArray()), 233postToolUse = new JsonArray(); 247["hooks"] = new JsonArray( 252["args"] = new JsonArray(args.Select(arg => (JsonNode?)JsonValue.Create(arg)).ToArray()),
Agents\McpConfigFileHelper.cs (2)
152aspire["args"] = new JsonArray("agent", "mcp"); 158aspire["command"] = new JsonArray("aspire", "agent", "mcp");
Migrations\TypeScriptAppHostMigration.cs (1)
253var rewritten = new JsonArray();
Projects\FallbackProjectParser.cs (2)
191var packageRefArray = new JsonArray(); 202var projectRefArray = new JsonArray();
Projects\NativeAppHostServerProject.cs (4)
128["providers"] = new JsonArray(providers.Select(provider => (JsonNode)new JsonObject 134["exports"] = new JsonArray(provider.Descriptor.Exports.Select(module => (JsonNode?)JsonValue.Create(module)).ToArray()) 153var runtimeProviders = new JsonArray(); 160["arguments"] = new JsonArray(provider.EntryPoint)
src\Shared\ConsoleLogs\SharedAIHelpers.cs (7)
74var jsonArray = new JsonArray(trimmedItems.ToArray()); 123var jsonArray = new JsonArray(trimmedItems.ToArray()); 160var jsonArray = new JsonArray(spans.Select(s => GetSpanDto(s, context, getResourceName, dashboardBaseUrl)).ToArray<JsonNode>()); 174var jsonArray = new JsonArray(logRecords.Select(l => GetLogEntryDto(l, context, getResourceName, dashboardBaseUrl)).ToArray<JsonNode>()); 188var jsonArray = new JsonArray(traces.Select(t => GetTraceDto(t, context, getResourceName, dashboardBaseUrl)).ToArray<JsonNode>()); 238linksArray = new JsonArray(linkObjects); 392var spanArray = new JsonArray(spanObjects.ToArray());
Utils\EnvironmentChecker\DevCertsCheck.cs (1)
527var certificatesArray = new JsonArray();
Aspire.Cli.Tests (13)
Agents\TelemetryHookConfiguratorTests.cs (5)
155["PostToolUse"] = new JsonArray( 159["hooks"] = new JsonArray( 246["args"] = new JsonArray(Path.Combine(workspace.Path, assemblyName), "agent", "telemetry", "--hook") 252["PostToolUse"] = new JsonArray(new JsonObject 255["hooks"] = new JsonArray(existingHook)
Backchannel\ResourceSnapshotMapperTests.cs (1)
344["custom.list"] = new JsonArray((JsonNode?)JsonValue.Create("one"), (JsonNode?)JsonValue.Create("two"))
Projects\NativeAppHostServerProjectTests.cs (1)
436["exports"] = new JsonArray()
Projects\ProjectUpdaterTests.cs (6)
3175["PackageReference"] = new JsonArray 3264["PackageReference"] = new JsonArray 4534items.Add("ProjectReference", new JsonArray()); 4535items.Add("PackageReference", new JsonArray()); 4544items.Add("ProjectReference", new JsonArray()); 4548items.Add("PackageReference", new JsonArray());
Aspire.Dashboard (2)
Model\TelemetryExportService.cs (1)
818var array = new JsonArray();
Otlp\Model\OtlpHelpers.cs (1)
214var a = new JsonArray();
Aspire.Dashboard.Tests (1)
Model\DashboardDataSourceTests.cs (1)
805["Values"] = new JsonArray("one", "two")
Aspire.Hosting (2)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1483var array = new JsonArray();
Dcp\JsonPatch.cs (1)
19var operations = new JsonArray();
Aspire.Hosting.Azure (7)
AzureDeploymentOperationDetails.cs (1)
183var array = new JsonArray();
AzureProvisioningController.cs (3)
2552json["remainingResources"] = new JsonArray([.. result.RemainingResources.Select(resource => (JsonNode)new JsonObject 2568var deletedResourceIds = new JsonArray(); 2854["diagnostics"] = new JsonArray
AzureProvisioningFailureDetails.cs (2)
374var array = new JsonArray(); 489var supportedLocations = new JsonArray();
Provisioning\BicepUtilities.cs (1)
79IEnumerable<string> s => new JsonArray(s.Select(s => JsonValue.Create(s)).ToArray()),
Aspire.Hosting.Azure.Sandboxes (5)
AzureSandboxContainerDeployment.cs (5)
355var portStates = new JsonArray(); 1954stateSection.Data["PendingOwnerCleanupIds"] = new JsonArray( 2015["Endpoints"] = new JsonArray( 2027["IdentitySettings"] = new JsonArray( 2041["HostRules"] = new JsonArray(
Aspire.Hosting.Azure.Tests (6)
AzureSandboxesTests.cs (6)
873["PendingOwnerCleanupIds"] = new JsonArray("older-owner", "current-owner") 1094["Ports"] = new JsonArray(new JsonObject { ["Port"] = 8080 }) 1132["Ports"] = new JsonArray(new JsonObject { ["Port"] = 8080 }) 2803state.Data["Ports"] = new JsonArray(new JsonObject 2936state.Data["Ports"] = new JsonArray 3222state.Data["Ports"] = new JsonArray(new JsonObject
Aspire.Hosting.Azure.WebPubSub (2)
AzureWebPubSubExtensions.cs (2)
228var handlers = new JsonArray(); 240["SystemEvents"] = new JsonArray((systemEvents ?? []).Select(e => (JsonNode?)JsonValue.Create(e)).ToArray())
Aspire.Hosting.CodeGeneration.TypeScript (6)
TypeScriptApiExportWriter.cs (6)
25var modules = new JsonArray(); 31var declarations = new JsonArray(); 74var items = new JsonArray(); 109var members = new JsonArray(); 147var parameters = new JsonArray(); 196var array = new JsonArray();
Aspire.Hosting.Native.Client (2)
Authoring\NativePipeline.cs (2)
115["steps"] = new JsonArray(_steps.Select(step => (JsonNode)new JsonObject 196new(values.Select(value => (JsonNode?)JsonValue.Create(value)).ToArray());
Aspire.Hosting.Native.CodeGeneration (3)
NativeProviderProjection.cs (2)
36var manifest = new JsonObject { ["protocolVersion"] = 2, ["capabilities"] = new JsonArray() }; 52var parameters = new JsonArray();
Program.cs (1)
215await File.WriteAllTextAsync(Path.Combine(output, "languages.json"), new JsonArray(new JsonObject
Aspire.Hosting.Native.Core.Tests (51)
ApplicationRevisionTests.cs (5)
369["image"] = "test-replacement", ["targetPort"] = 6379, ["environment"] = new JsonArray(), ["arguments"] = new JsonArray() 377["image"] = "test", ["targetPort"] = 6379, ["environment"] = new JsonArray(), ["arguments"] = new JsonArray() 387["properties"] = new JsonArray(new JsonObject { ["name"] = "value", ["value"] = value })
DcpWorkloadCleanupTests.cs (2)
71["environment"] = new JsonArray(), 72["arguments"] = new JsonArray()
NativeCliControlTests.cs (6)
23var spec = Result(client.Call("getRuntimeSpec", new JsonArray("typescript/nodejs"))); 24var sdk = Result(client.Call("generateCode", new JsonArray("TypeScript", null))).AsObject(); 58Assert.Equal("INVALID_ARGUMENT", Error(client.Call("getAppHostServerConfiguration", new JsonArray("unexpected")))); 59Assert.Equal("INVALID_ARGUMENT", Error(client.Call("generateCode", new JsonArray("TypeScript", "Aspire.Hosting")))); 60Assert.Equal("NOT_SUPPORTED", Error(client.Call("getRuntimeSpec", new JsonArray("python")))); 81["jsonrpc"] = "2.0", ["id"] = 1, ["method"] = "authenticate", ["params"] = new JsonArray(Token),
NativeComposeCSharpTests.cs (1)
92options["ports"] = new JsonArray();
NativeDashboardTests.cs (1)
159["properties"] = new JsonArray(new JsonObject { ["name"] = "value", ["value"] = "updated" })
NativeNamedPipeTests.cs (2)
28Assert.True((await first.CallAsync("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>()); 29Assert.True((await second.CallAsync("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>());
NativeProviderClientTests.cs (4)
56await provider.CallAsync("authenticate", new JsonArray(host.Token), cancellationToken); 58await provider.SendAsync("registerAsIntegrationHost", new JsonArray(authority), cancellationToken); 127await provider.CallAsync("authenticate", new JsonArray(host.Token), deadline.Token); 129await provider.SendAsync("registerAsIntegrationHost", new JsonArray(authority), deadline.Token);
NativeRpcTests.cs (2)
29Assert.False(client.Call("authenticate", new JsonArray("wrong-token"))["result"]!.GetValue<bool>()); 31Assert.True(client.Call("authenticate", new JsonArray(Token))["result"]!.GetValue<bool>());
NativeSocketIsolationTests.cs (10)
38Assert.True((await authenticated.CallAsync("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>()); 99Assert.True((await existing.CallAsync("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>()); 108Assert.True((await subsequent.CallAsync("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>()); 135await failing.CallAsync("authenticate", new JsonArray(Token), timeout.Token); 144var writer = Result(await failing.CallAsync("invokeCapability", new JsonArray("Aspire.Hosting.Native.Api/joinResourceExecution", 146var response = await failing.CallAsync("invokeCapability", new JsonArray("Aspire.Hosting.Native.Api/startContainer", 150["environment"] = new JsonArray(), ["arguments"] = new JsonArray() 158Assert.True((await subsequent.CallAsync("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>()); 314Assert.True((await client.CallAsync("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>());
ResourceWorkloadTests.cs (4)
38["environment"] = new JsonArray(), ["arguments"] = new JsonArray() 58["environment"] = new JsonArray(), ["arguments"] = new JsonArray()
RuntimeRpcTests.cs (1)
51("context", context.Reader), ("observation", new JsonObject { ["state"] = "Running", ["healthy"] = true, ["urls"] = new JsonArray() })))));
TestServices\LifecycleProviderTestIntegration.cs (4)
30var methods = new JsonArray 35["parameters"] = new JsonArray(Parameter("composition", Type(CoreType + "Composition")), 49["parameters"] = new JsonArray(Parameter("context", Type(ResourceType)), Parameter("scope", Type(CoreType + "ResourceLifecycleScope"))), 59["parameters"] = new JsonArray(Parameter("context", Type(ResourceType)), Parameter("other", Type(ResourceType))),
TestServices\RpcTestClient.cs (3)
39if (authenticate && Call("authenticate", new JsonArray(Token))["result"]?.GetValue<bool>() != true) 66Call("invokeCapability", new JsonArray(CapabilityId(capability), arguments)); 69CallAsync("invokeCapability", new JsonArray(CapabilityId(capability), arguments));
TestServices\RuntimeRpcTestContext.cs (1)
57["urls"] = new JsonArray(urls.Select(url => (JsonNode?)JsonValue.Create(url)).ToArray())
TestServices\WorkspaceRpcTestContext.cs (1)
60["state"] = "Running", ["healthy"] = true, ["urls"] = new JsonArray("tcp://127.0.0.1:5050")
WorkloadDefinitionTests.cs (4)
110["environment"] = new JsonArray(), ["arguments"] = new JsonArray("--serve"), 111["mounts"] = new JsonArray(new JsonObject 115["endpoints"] = new JsonArray(
Aspire.Hosting.Native.Server (19)
Api\PublishingApi.cs (9)
27parts => new() { ["kind"] = "composite", ["parts"] = new JsonArray(parts.Cast<JsonNode>().ToArray()) }, 29var resources = new JsonArray(); 36var arguments = new JsonArray(); 73["endpoints"] = new JsonArray((plan?.Endpoints ?? []).Select(endpoint => (JsonNode)new JsonObject 80["mounts"] = new JsonArray(((plan as ContainerWorkload)?.Mounts ?? []).Select(mount => (JsonNode)new JsonObject 85["dependencies"] = new JsonArray(resource.Dependencies.Select(handle => (JsonNode?)JsonValue.Create(names[handle])).ToArray()), 86["lifecycle"] = new JsonArray((workload?.Lifecycle ?? []).Select(hook => (JsonNode?)JsonValue.Create(hook.Phase)) 95["parameters"] = new JsonArray(snapshot.SecretParameters.Concat(snapshot.Parameters.Select(parameter => parameter.Value)) 98["secretParameters"] = new JsonArray(snapshot.SecretParameters.OrderBy(parameter => parameter.ParameterName, StringComparer.Ordinal)
artifacts\obj\Aspire.Hosting.Native.Server\Debug\native-ats\NativeDispatch.g.cs (1)
131return new JsonArray(result.Select(value => (JsonNode?)JsonValue.Create(value)).ToArray());
Rpc\NativeProviderLifecycle.cs (3)
80new JsonArray(JsonValue.Create(binding.CapabilityId), arguments, JsonValue.Create(invocation)), cancellation.Token).ConfigureAwait(false); 94await peer.RequestAsync("cancelProviderInvocation", new JsonArray(JsonValue.Create(invocation)), 147new JsonArray(JsonValue.Create(resource.ObjectId)), deadline.Token).ConfigureAwait(false);
Rpc\NativeProviderRegistry.cs (5)
185["capabilities"] = new JsonArray(_capabilities.OrderBy(pair => pair.Key, StringComparer.Ordinal) 237new JsonArray(JsonValue.Create(capability), mapped, JsonValue.Create(Guid.NewGuid().ToString())), caller.Closed).ConfigureAwait(false); 325JsonArray array => new JsonArray(array.Select(Translate).ToArray()), 349JsonArray array => new JsonArray(array.Select(DelegateResult).ToArray()), 377new JsonArray(JsonValue.Create(callback.Id), mapped)).ConfigureAwait(false);
Rpc\NativeRpcConnection.cs (1)
200.RequestAsync("invokeCallback", new JsonArray(callbackId, arguments), timeout.Token)
Aspire.Hosting.RemoteHost (2)
Ats\AtsMarshaller.cs (2)
386var jsonArray = new JsonArray(); 468var jsonArray = new JsonArray();
Aspire.Hosting.RemoteHost.Tests (11)
AtsMarshallerTests.cs (6)
464var json = new JsonArray { 1, 2, 3 }; 477var json = new JsonArray { "a", "b", "c" }; 742var json = new JsonArray { 1, 2, 3 }; 755var json = new JsonArray { "x", "y" }; 811["addressPrefixes"] = new JsonArray("203.0.113.0/24", "198.51.100.0/24"), 812["addressPrefixReferences"] = new JsonArray
CapabilityDispatcherTests.cs (3)
940["values"] = new JsonArray { 1, 2, 3, 4, 5 } 972["values"] = new JsonArray { 10, 20, 30 } 1095["value"] = new JsonArray { 1, 2, 3 }
ReferenceExpressionRefTests.cs (2)
43["valueProviders"] = new JsonArray 265var providersArray = new JsonArray();
Aspire.Hosting.Tests (6)
JsonFlattenerTests.cs (6)
141["SimpleArray"] = new JsonArray("value1", "value2", "value3"), 142["NumberArray"] = new JsonArray(1, 2, 3), 143["MixedArray"] = new JsonArray("text", 42, true, null) 170["ObjectArray"] = new JsonArray( 176["Items"] = new JsonArray( 205["EmptyArray"] = new JsonArray(),
Aspire.Managed.Tests (6)
AppHostServerV2CodeGenerationTests.cs (6)
46["providers"] = new JsonArray() 74["providers"] = new JsonArray( 80["exports"] = new JsonArray("provider.mts") 87["exports"] = new JsonArray("provider.mts") 121["providers"] = new JsonArray((JsonNode)new JsonObject 126["exports"] = new JsonArray(sdkFile)
ConfigurationSchemaGenerator (3)
ConfigSchemaEmitter.cs (3)
596var enumNode = new JsonArray(); 620propertyNode["type"] = new JsonArray { "number", "string" }; 630propertyNode["oneOf"] = new JsonArray
dotnet-user-jwts (1)
Helpers\JwtAuthenticationSchemeSettings.cs (1)
24[nameof(TokenValidationParameters.ValidAudiences)] = new JsonArray(Audiences.Select(aud => JsonValue.Create(aud)).ToArray()),
GenerateTemplateManifest (1)
ComponentManifest.cs (1)
88var entries = new JsonArray();
Infrastructure.Tests (138)
WorkflowScripts\AutoSecWorkflowTests.cs (138)
29["alerts"] = empty ? new JsonArray() : new JsonArray(new JsonObject 42["security_advisory"] = new JsonObject { ["description"] = "synthetic private advisory", ["vulnerabilities"] = new JsonArray() }, 44["malware"] = empty ? new JsonArray() : new JsonArray(new JsonObject { ["number"] = 7 }), 225scenario["files"] = new JsonArray(new JsonObject 252scenario["files"] = new JsonArray("extension/package.json", new JsonObject 282scenario["files"] = new JsonArray("extension/package.json", new JsonObject { ["filename"] = "extension/yarn.lock", ["status"] = status }); 303scenario["files"] = new JsonArray(new JsonObject 392scenario["comparisonResponses"] = new JsonArray(valid, comparison); 404scenario["comparisonResponses"] = new JsonArray(comparison); 512scenario["commits"] = new JsonArray( 518scenario["commits"] = new JsonArray(new JsonObject { ["author_login"] = "dependabot[bot]", ["verified"] = false }); 588scenario["malwareNumbers"] = new JsonArray(9); 626scenario["alerts"]![0]!["advisory_ranges"] = new JsonArray("< 4.17.21", ">= 4.17.21, < 4.17.25"); 646scenario["liveCheckRuns"] = new JsonArray(new JsonObject { ["name"] = "tests", ["status"] = "in_progress", ["conclusion"] = null }); 651scenario["liveStatuses"] = new JsonArray(new JsonObject { ["context"] = "license/cla", ["state"] = "failure" }); 654scenario["malwareNumbers"] = new JsonArray(7); 676scenario["checkRuns"] = new JsonArray(); 682scenario["statuses"] = new JsonArray(new JsonObject { ["context"] = "license/cla", ["state"] = "pending" }); 687var statuses = new JsonArray(); 697scenario["statuses"] = new JsonArray(new JsonObject { ["context"] = "license/cla", ["state"] = "success" }); 701scenario["reviews"] = new JsonArray(new JsonObject { ["user_login"] = "aspire-repo-bot[bot]", ["state"] = "APPROVED", ["commit_id"] = HeadSha }); 723["args"] = new JsonArray(new JsonObject 725["items"] = new JsonArray( 756["args"] = new JsonArray(from, to), 777["args"] = new JsonArray(version, new JsonArray(range)), 834["args"] = new JsonArray(path, Wrap(baseLine), Wrap(headLine)), 906[$"{flat}x/index.json"] = Response(new JsonObject { ["versions"] = new JsonArray("9.0.4", "9.0.5") }), 998[$"{flat}x/index.json"] = Response(new JsonObject { ["versions"] = new JsonArray("9.0.4", "9.0.5") }), 1132["agentItems"] = new JsonArray(output), 1158["args"] = new JsonArray(path), 1176["agentItems"] = new JsonArray(output), 1199["outputLines"] = new JsonArray(output.ToJsonString()), 1293["agentItems"] = new JsonArray(item), 1339["args"] = new JsonArray(message), 1353["args"] = new JsonArray( 1354new JsonArray(new JsonObject { ["malware"] = true }, new JsonObject()), 1357["version_alerts"] = new JsonArray(new JsonObject()), 1358["other_rule_counts"] = new JsonArray(new JsonObject { ["count"] = 2 }, new JsonObject { ["count"] = 3 }), 1384["outputLines"] = new JsonArray(output), 1423["outputLines"] = new JsonArray(new JsonObject 1452["outputLines"] = new JsonArray(output, output), 1479["outputLines"] = new JsonArray(output.ToJsonString()), 1502["outputLines"] = new JsonArray(output.ToJsonString()), 1551["outputLines"] = new JsonArray(output.ToJsonString()), 1608["commits"] = new JsonArray( 1616["outputLines"] = new JsonArray(output.ToJsonString()), 1693["outputLines"] = layout == "introduced" && field == "commit" ? new JsonArray() : new JsonArray(output.ToJsonString()), 1733["outputLines"] = new JsonArray(PublicOutputFixture("create_pull_request").ToJsonString()), 1752["outputLines"] = new JsonArray(output), 1772["outputLines"] = new JsonArray( 1814["outputLines"] = new JsonArray(PublicOutputFixture(first).ToJsonString(), PublicOutputFixture(second).ToJsonString()), 1849["outputLines"] = new JsonArray(output.ToJsonString()), 1893baseline["metadata"] = new JsonArray(new JsonObject { ["version"] = "1.0.0" }); 1960["outputLines"] = new JsonArray(output.ToJsonString()), 2027["outputLines"] = new JsonArray(output.ToJsonString()), 2121["outputLines"] = new JsonArray(output.ToJsonString()), 2208["outputLines"] = new JsonArray(output.ToJsonString()), 2313["outputLines"] = new JsonArray(output.ToJsonString()), 2367["outputLines"] = new JsonArray(output.ToJsonString()), 2436["outputLines"] = new JsonArray(output.ToJsonString()), 2479["outputLines"] = new JsonArray(output.ToJsonString()), 2518["outputLines"] = new JsonArray(output.ToJsonString()), 2546["outputLines"] = new JsonArray(PublicOutputFixture("create_pull_request").ToJsonString()), 2582["outputLines"] = new JsonArray(output.ToJsonString()), 2637["outputLines"] = new JsonArray(PublicOutputFixture("create_pull_request").ToJsonString()), 2665["outputLines"] = new JsonArray(PublicOutputFixture("create_pull_request").ToJsonString()), 2685["outputLines"] = new JsonArray(PublicOutputFixture("create_pull_request").ToJsonString()), 2734["outputLines"] = new JsonArray(output.ToJsonString()), 2765["outputLines"] = new JsonArray(PublicOutputFixture("create_pull_request").ToJsonString()), 2810["args"] = new JsonArray(line), 2850["args"] = new JsonArray(path, line), 2869["outputLines"] = new JsonArray(PublicOutputFixture("create_pull_request").ToJsonString()), 2904["outputLines"] = new JsonArray(output.ToJsonString()), 2927["outputLines"] = new JsonArray(PublicOutputFixture("create_pull_request").ToJsonString()), 2960["outputLines"] = new JsonArray(PublicOutputFixture("create_pull_request").ToJsonString()), 2985["outputLines"] = new JsonArray(PublicOutputFixture("create_pull_request").ToJsonString()), 3010["extraBlobs"] = new JsonArray(forgedBase), 3011["outputLines"] = new JsonArray(output.ToJsonString()), 3034["agentItems"] = new JsonArray(PublicOutputFixture("create_pull_request")), 3059? new JsonObject { ["private advisory"] = new JsonArray("alert 42") } 3065["outputLines"] = new JsonArray(input.ToJsonString()), 3096["outputLines"] = new JsonArray(input.ToJsonString()), 3134["outputLines"] = new JsonArray(input.ToJsonString()), 3198["outputLines"] = new JsonArray( 3237["outputLines"] = new JsonArray(new JsonObject 3307["args"] = new JsonArray(new JsonArray()), 3687=> new(PublicationSteps(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "auto-sec.lock.yml"))) 3729["args"] = new JsonArray(baseText, headText, path), 3752["args"] = new JsonArray(baseText, headText, "uv.lock"), 3796["args"] = new JsonArray(left, right), 3833["args"] = new JsonArray("resolved \"https://registry.npmjs.org/b/-/b-1.0.0.tgz\"", $"resolved \"{headUrl}\""), 3876["args"] = new JsonArray(path, baseText, headText), 3952scenario["malwareNumbers"] = new JsonArray(7); 3997var items = new JsonArray(); 4026var items = new JsonArray(); 4072["args"] = new JsonArray(path, baseText, headText, "npm"), 4086["args"] = new JsonArray( 4133["args"] = new JsonArray(path, text, ecosystem, name, version), 4143var alerts = new JsonArray( 4147new JsonObject { ["number"] = 4, ["ecosystem"] = "npm", ["package"] = "lodash", ["manifest_path"] = "app/yarn.lock", ["first_patched_version"] = null, ["malware"] = true, ["vulnerable_ranges"] = new JsonArray(">= 4.17.20, < 4.17.21") }, 4150new JsonObject { ["number"] = 12, ["ecosystem"] = "npm", ["package"] = "lodash", ["manifest_path"] = "app/yarn.lock", ["first_patched_version"] = null, ["malware"] = true, ["vulnerable_ranges"] = new JsonArray(">= 0") }, 4161var updates = new JsonArray(new JsonObject { ["name"] = "lodash", ["from"] = "4.17.20", ["to"] = "4.17.21" }); 4162var versionChanges = new JsonArray(new JsonObject { ["name"] = "minimist", ["from"] = new JsonArray("1.2.5"), ["to"] = "1.2.8" }); 4181["args"] = new JsonArray(alerts, "npm", updates, versionChanges, headContents, baseContents), 4195var alerts = new JsonArray( 4206["args"] = new JsonArray(alerts, "npm", new JsonArray(), new JsonArray(), new JsonObject { ["app/package-lock.json"] = headText }, baseContents), 4228["https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/flat2/system.text.json/index.json"] = Response(new JsonObject { ["versions"] = new JsonArray("9.0.4", "9.0.5") }), 4262[$"{transportFlat}contoso.build.engine/index.json"] = Response(new JsonObject { ["versions"] = new JsonArray("1.0.0") }), 4373["urls"] = new JsonArray( 4396["agentItems"] = new JsonArray(new JsonObject { ["type"] = "create_pull_request" }), 4438["labels"] = new JsonArray(new JsonObject { ["name"] = "auto-sec" }), 4443["agentItems"] = new JsonArray(new JsonObject { ["type"] = "create_pull_request", ["branch"] = "auto-sec/security-updates" }), 4445["closedPrs"] = new JsonArray(closed), 4450case "open-pr": scenario["openPrs"] = new JsonArray(new JsonObject { ["state"] = "open", ["user"] = new JsonObject { ["login"] = "someone" } }); break; 4451case "no-history": scenario["closedPrs"] = new JsonArray(); break; 4457case "missing-label": closed["labels"] = new JsonArray(); break; 4653["agentItems"] = new JsonArray(item ?? new JsonObject { ["type"] = "push_to_pull_request_branch", ["pull_request_number"] = 202 }), 4672["resources"] = new JsonArray(new JsonObject { ["@id"] = flatContainer, ["@type"] = "PackageBaseAddress/3.0.0" }), 4678["prs"] = new JsonArray(new JsonObject 4687["statusCheckRollup"] = new JsonArray(new JsonObject { ["conclusion"] = "SUCCESS" }), 4689["changedFiles"] = new JsonArray( 4690new JsonArray(new JsonObject { ["filename"] = "README.md", ["status"] = "modified" }), 4691new JsonArray(new JsonObject { ["filename"] = "extension/yarn.lock", ["status"] = "modified" })), 4697["alerts"] = new JsonArray(new JsonObject 4745["agentItems"] = new JsonArray(new JsonObject { ["type"] = "approve_dependabot_pr", ["pr_number"] = 101, ["head_sha"] = HeadSha }), 4755["files"] = new JsonArray("extension/package.json", "extension/yarn.lock"), 4763["alerts"] = new JsonArray(new JsonObject 4772["checkRuns"] = new JsonArray(new JsonObject { ["name"] = "ci", ["status"] = "completed", ["conclusion"] = "success" }), 4773["statuses"] = new JsonArray(), 4774["reviews"] = new JsonArray(),
Microsoft.AspNetCore.OpenApi (4)
Extensions\JsonNodeSchemaExtensions.cs (1)
364var enumArray = new JsonArray();
Schemas\OpenApiJsonSchema.Helpers.cs (1)
143var array = new JsonArray();
Services\Schemas\OpenApiSchemaService.cs (2)
238var array = new JsonArray(); 634var newArray = new JsonArray();
Microsoft.Extensions.AI (1)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
168{ "required", new JsonArray("data") },
Microsoft.Extensions.AI.Abstractions (6)
Utilities\AIJsonUtilities.Schema.Create.cs (6)
328obj[TypePropertyName] = new JsonArray { (JsonNode)numericType, (JsonNode)"null" }; 349objSchema[TypePropertyName] = new JsonArray { (JsonNode)typeValue, (JsonNode)"null" }; 356objSchema.InsertAtStart(TypePropertyName, new JsonArray { (JsonNode)"string", (JsonNode)"null" }); 370objSchema[TypePropertyName] = new JsonArray { (JsonNode)typeValue, (JsonNode)"null" }; 576requiredArray ??= (JsonArray)(requiredSchemaObj[RequiredPropertyName] = new JsonArray()); 698JsonArray enumArray = new();
Microsoft.Extensions.AI.Evaluation.Quality (3)
AIToolExtensions.cs (1)
20var toolDefinitionsJsonArray = new JsonArray();
ChatMessageExtensions.cs (1)
17var messagesJsonArray = new JsonArray();
ChatResponseExtensions.cs (1)
27var toolCallsAndResultsJsonArray = new JsonArray();
Microsoft.Extensions.AI.Evaluation.Safety (10)
ContentSafetyServicePayloadUtilities.cs (10)
151["UserTextList"] = new JsonArray([.. userTextListStrings]), 157payload["MetricList"] = new JsonArray([.. metricNames]); 233["UserTextList"] = new JsonArray([.. userTextListStrings]), 239payload["MetricList"] = new JsonArray([.. metricNames]); 285["content"] = new JsonArray([.. contents]) 300["content"] = new JsonArray([.. contents]), 309["content"] = new JsonArray([.. contents]), 361new JsonArray( 364["messages"] = new JsonArray([.. turns.SelectMany(GetMessages)]), 371payload["MetricList"] = new JsonArray([.. metricNames]);
Microsoft.NET.Build.Containers (9)
ImageConfig.cs (3)
163["history"] = new JsonArray(_history.Select(CreateHistory).ToArray<JsonNode>()) 168static JsonArray ToJsonArray(IEnumerable<string> items) => new(items.Where(s => !string.IsNullOrEmpty(s)).Select(s => JsonValue.Create(s)).ToArray<JsonNode?>()); 315JsonArray envVarJson = new();
LocalDaemons\ContainerArchive.cs (3)
63JsonArray layerTarballPaths = new(); 159JsonArray tagsNode = new(); 165JsonNode manifestNode = new JsonArray(
LocalDaemons\DockerCli.cs (3)
315JsonArray layerTarballPaths = new(); 385JsonArray tagsNode = new(); 391JsonNode manifestNode = new JsonArray(new JsonObject
Microsoft.NET.Build.Tasks (2)
GenerateRuntimeConfigurationFiles.cs (2)
467JsonArray probingPaths = new(); 491JsonArray array = new();
Microsoft.NETCore.Platforms (1)
UpdateRuntimeIdentifierGraph.cs (1)
42runtimes.Add(rid.ItemSpec, new JsonObject { ["#import"] = new JsonArray([.. importedRids]) });
Microsoft.TemplateEngine.Cli (1)
Alias\AliasRegistry.cs (1)
153JsonArray arr = new();
Microsoft.TemplateEngine.Edge (1)
BuiltInManagedProvider\GlobalSettings.cs (1)
86foreach (var package in jObject.Get<JsonArray>(nameof(GlobalSettingsData.Packages)) ?? new JsonArray())
MSBuild (2)
JsonOutputFormatter.cs (2)
57JsonArray itemArray = new(); 96JsonArray outputArray = new();
NativeIntegrations.DockerCompose (17)
ComposeModels.cs (4)
40result["ports"] = new JsonArray(Ports.Select(port => 145(Model["volumes"] ??= new JsonArray()).AsArray().Add(new JsonObject 347internal static JsonArray Strings(IEnumerable<string> values) => new(values.Select(value => (JsonNode?)JsonValue.Create(value)).ToArray()); 352JsonArray array => new JsonArray(array.Select(EscapeNode).ToArray()),
DockerComposeBuilderExtensions.cs (1)
53plan.Inputs["parameters"] = new JsonArray(Objects(parameters).OrderBy(entry => Text(entry, "name"), StringComparer.Ordinal)
DockerComposeEnvironment.cs (3)
204"External cleanup (argument list): " + new JsonArray("docker", "compose", "-p", Text(plan.Compose, "name"), "-f", 316var services = new JsonArray(); 327var endpoints = new JsonArray();
DockerComposeGenerator.cs (9)
21var identity = Hash(ComposeJson.Json(new JsonArray(directory, environmentName, name))); 104["schemaVersion"] = 1, ["projectName"] = project, ["parameters"] = new JsonArray(), ["variables"] = new JsonObject() 142service["entrypoint"] = new JsonArray(ComposeJson.Literal(ComposeJson.Text(Text(resource, "entrypoint")))); 209service["ports"] = new JsonArray(exposed.Select(exposure => 225service["volumes"] = new JsonArray(mounts.Select((mount, index) => 288inputs["parameters"] = new JsonArray(used.Select(parameter => (JsonNode)new JsonObject 331return new() { ["kind"] = "composite", ["parts"] = new JsonArray(Objects(value["parts"]).Select(part => (JsonNode)Normalize(part, depth + 1)).ToArray()) }; 486["expose"] = new JsonArray("18888/tcp", "18889/tcp") 490dashboard["ports"] = new JsonArray(new JsonObject
SelectTests (4)
Program.cs (4)
663var array = new JsonArray(); 676var array = new JsonArray(); 679var causeArray = new JsonArray(); 687path = new JsonArray();
System.Text.Json (9)
System\Text\Json\Nodes\JsonArray.cs (4)
81? new JsonArray(jsonElement.Value.Clone(), Options) 82: new JsonArray(Options); 85var jsonArray = new JsonArray(Options) 191JsonValueKind.Array => new JsonArray(element, options),
System\Text\Json\Schema\JsonSchema.cs (2)
194var requiredArray = new JsonArray(); 325var array = new JsonArray();
System\Text\Json\Serialization\Converters\Node\JsonArrayConverter.cs (2)
41return new JsonArray(jElement, options); 48JsonArray jArray = new JsonArray(options);
System\Text\Json\Serialization\Converters\Node\JsonNodeConverter.cs (1)
92node = new JsonArray(element, options);
TestProject.AppHost (1)
TestProgram.cs (1)
180var endpointsJsonArray = new JsonArray();
453 references to JsonArray
aspire (29)
Agents\AspireSkills\GitHubArtifactAttestationVerifier.cs (1)
164if (document?["attestations"] is not JsonArray attestations)
Agents\Hooks\TelemetryHookConfigurator.cs (5)
221JsonArray postToolUse; 224if (postToolUseNode is not JsonArray postToolUseArray) 278private static void RemoveExistingAspireEntries(JsonArray postToolUse) 287|| innerNode is not JsonArray innerHooks) 323if (hook.TryGetPropertyValue("args", out var argsNode) && argsNode is JsonArray args)
Agents\McpConfigFileHelper.cs (2)
149aspire["args"] is JsonArray { Count: 2 } args && 154else if (aspire["command"] is JsonArray { Count: 3 } command &&
Migrations\TypeScriptAppHostMigration.cs (2)
248root["include"] is not JsonArray include) 253var rewritten = new JsonArray();
Npm\SigstoreNpmProvenanceChecker.cs (1)
199if (attestationsNode is not JsonArray { Count: > 0 } attestations)
Projects\FallbackProjectParser.cs (2)
191var packageRefArray = new JsonArray(); 202var projectRefArray = new JsonArray();
Projects\NativeAppHostServerProject.cs (1)
153var runtimeProviders = new JsonArray();
Projects\NativeProviderDescriptor.cs (1)
23descriptor["exports"] is not JsonArray { Count: <= 128 } exports)
Scaffolding\ScaffoldingService.cs (2)
685if (existingValue is not JsonArray existingArray || scaffoldValue is not JsonArray scaffoldArray)
src\Shared\ConsoleLogs\SharedAIHelpers.cs (7)
74var jsonArray = new JsonArray(trimmedItems.ToArray()); 123var jsonArray = new JsonArray(trimmedItems.ToArray()); 160var jsonArray = new JsonArray(spans.Select(s => GetSpanDto(s, context, getResourceName, dashboardBaseUrl)).ToArray<JsonNode>()); 174var jsonArray = new JsonArray(logRecords.Select(l => GetLogEntryDto(l, context, getResourceName, dashboardBaseUrl)).ToArray<JsonNode>()); 188var jsonArray = new JsonArray(traces.Select(t => GetTraceDto(t, context, getResourceName, dashboardBaseUrl)).ToArray<JsonNode>()); 230JsonArray? linksArray = null; 392var spanArray = new JsonArray(spanObjects.ToArray());
src\Shared\Json\JsonFlattener.cs (1)
70else if (kvp.Value is JsonArray array)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (1)
766if (kerberosStatusNode is not JsonArray kerberosStatuses)
Utils\EnvironmentChecker\DeprecatedAgentConfigCheck.cs (2)
117if (!aspire.TryGetPropertyValue("args", out var argsNode) || argsNode is not JsonArray args) 149if (!aspire.TryGetPropertyValue("command", out var commandNode) || commandNode is not JsonArray command)
Utils\EnvironmentChecker\DevCertsCheck.cs (1)
527var certificatesArray = new JsonArray();
Aspire.Cli.EndToEnd.Tests (1)
CSharpInitTests.cs (1)
143Assert.Empty(Assert.IsType<JsonArray>(description["resources"]));
Aspire.Cli.Tests (30)
Agents\TelemetryHookConfiguratorTests.cs (12)
114var postToolUse = await ReadClaudePostToolUseAsync(home).DefaultTimeout(); 138var postToolUse = await ReadClaudePostToolUseAsync(home).DefaultTimeout(); 176var postToolUse = root["hooks"]!["PostToolUse"]!.AsArray(); 194var groups = await ReadClaudePostToolUseAsync(home); 265var groups = await ReadClaudePostToolUseAsync(home); 329private static async Task<JsonArray> ReadClaudePostToolUseAsync(DirectoryInfo home) 336private static int CountAspireGroups(JsonArray postToolUse) 341&& obj["hooks"] is JsonArray hooks 349|| (ho["args"] is JsonArray args && args.Any(JsonValueHasTelemetryScript))); 356&& obj["hooks"] is JsonArray hooks 361private static JsonObject FindAspireHook(JsonArray postToolUse) 365if (group is JsonObject obj && obj["hooks"] is JsonArray hooks)
Backchannel\ResourceSnapshotMapperTests.cs (2)
351var listProperty = Assert.IsType<JsonArray>(result.Properties["custom.list"]);
Commands\ResourceCommandTests.cs (2)
1806var argumentInputs = Assert.IsType<JsonArray>(json);
Commands\TelemetryTracesCommandTests.cs (2)
137var items = JsonNode.Parse(jsonLine)!.AsArray(); 225var items = JsonNode.Parse(jsonLine)!.AsArray();
Mcp\ListStructuredLogsToolTests.cs (1)
303var logsArray = JsonNode.Parse(jsonText)?.AsArray();
Mcp\ListTracesToolTests.cs (3)
227var tracesArray = JsonNode.Parse(jsonText)?.AsArray(); 239var spans = firstTrace["spans"]?.AsArray(); 266var secondTraceSpans = secondTrace["spans"]?.AsArray();
Projects\ProjectUpdaterTests.cs (3)
4559var packageReferences = items["PackageReference"]!.AsArray(); 4575var packageReferences = items["PackageReference"]!.AsArray(); 4591var projectReferences = items["ProjectReference"]!.AsArray();
Scaffolding\PackageJsonMergerTests.cs (3)
1250var keywords = doc["keywords"]!.AsArray(); 1255var files = doc["files"]!.AsArray(); 1309Assert.IsAssignableFrom<JsonArray>(doc["keywords"]);
Telemetry\ReportedLogExportTests.cs (1)
70var envelopes = JsonNode.Parse(await File.ReadAllTextAsync(Path.Combine(workspace.Path, "envelopes.json")))!.AsArray();
Utils\DevCertsCheckTests.cs (1)
305var certificates = devCertsResult.Metadata["certificates"]!.AsArray();
Aspire.Dashboard (10)
Model\GenAI\GenAIItemPartViewModel.cs (2)
78JsonArray arr when arr.Count == 0 => string.Empty, 117JsonArray arr when arr.Count == 0 => string.Empty,
Model\GenAI\GenAISchemaHelpers.cs (3)
46if (schemaObj["required"] is JsonArray requiredArray) 59if (schemaObj["enum"] is JsonArray enumArray) 85if (typeNode is JsonArray typeArray)
Model\GenAI\GenAIVisualizerDialogViewModel.cs (1)
92if (jsonNode is JsonArray array)
Model\TelemetryExportService.cs (1)
818var array = new JsonArray();
Otlp\Model\OtlpHelpers.cs (2)
212static JsonArray ConvertArray(ArrayValue value) 214var a = new JsonArray();
src\Shared\Telemetry\InternalMicrosoftDetector.cs (1)
766if (kerberosStatusNode is not JsonArray kerberosStatuses)
Aspire.Dashboard.Tests (10)
Model\GenAISchemaHelpersTests.cs (6)
122var typeArrayWithObjects = JsonNode.Parse("""["string", {"invalid": "object"}, "number"]""") as JsonArray; 136var typeArrayWithOnlyObjects = JsonNode.Parse("""[{"invalid": "object"}, {"another": "object"}]""") as JsonArray; 159var typeArray = JsonNode.Parse("""["string", "null"]""") as JsonArray;
Model\TelemetryExportServiceTests.cs (4)
1432var waitingForProperty = Assert.IsType<JsonArray>(deserialized.Properties[KnownProperties.Resource.WaitingFor]); 1566var portsArray = Assert.IsType<JsonArray>(deserialized.Properties["container.ports"]);
Aspire.Hosting (21)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (3)
396private static string?[] ConvertOrderedArgumentValues(JsonArray arguments) 1481private static JsonArray ConvertEnumerablePropertyValueToJsonArray(System.Collections.IEnumerable enumerable) 1483var array = new JsonArray();
Dcp\DcpExecutor.cs (1)
1149var jsonPatch = JsonPatch.Create(current, changed);
Dcp\JsonPatch.cs (9)
17internal static JsonArray Create(JsonNode? current, JsonNode? changed) 19var operations = new JsonArray(); 25internal static JsonNode? Apply(JsonNode? current, JsonArray patch) 48private static void AddOperations(JsonNode? current, JsonNode? changed, string path, JsonArray operations) 81if (current is JsonArray currentArray && changed is JsonArray changedArray) 208case JsonArray jsonArray: 228JsonArray jsonArray => jsonArray[ParseArrayIndex(segment, jsonArray.Count, allowEnd: false)] 260private static void ApplyToArray(JsonArray target, string operation, string indexText, JsonNode? value)
Pipelines\Internal\JsonFlattener.cs (1)
76else if (kvp.Value is JsonArray array)
Publishing\ContainerImageArchiveRewriter.cs (3)
224if (ParseJson(contents, entryName) is not JsonArray manifests) 241if (repoTagsNode is not JsonArray repoTags) 342if (index["manifests"] is not JsonArray manifests)
Publishing\ContainerRuntimeBase.cs (3)
212if (node is not JsonArray array) 247if (root is JsonArray verboseManifests) 265if (manifestObject["manifests"] is JsonArray manifests)
src\Shared\Json\JsonFlattener.cs (1)
70else if (kvp.Value is JsonArray array)
Aspire.Hosting.Azure (7)
AzureDeploymentOperationDetails.cs (2)
181private static JsonArray ToJsonArray(IEnumerable<AzureDeploymentOperationDetails> operations) 183var array = new JsonArray();
AzureProvisioningController.cs (1)
2568var deletedResourceIds = new JsonArray();
AzureProvisioningFailureDetails.cs (4)
372internal static JsonArray CreateRecommendedActionsJsonArray(IEnumerable<AzureProvisioningRecommendedAction> recommendedActions) 374var array = new JsonArray(); 489var supportedLocations = new JsonArray(); 622if (errorObj["details"] is JsonArray detailsArray)
Aspire.Hosting.Azure.Sandboxes (5)
AzureSandboxContainerDeployment.cs (4)
355var portStates = new JsonArray(); 1930var ownerIds = stateSection.Data["PendingOwnerCleanupIds"] is JsonArray pendingOwnerIds 2152if (stateSection.Data["Ports"] is not JsonArray ports) 2200if (stateSection.Data["Ports"] is JsonArray ports)
AzureSandboxEndpointPropertyValueProvider.cs (1)
127if (stateSection.Data["Ports"] is not JsonArray ports)
Aspire.Hosting.Azure.Tests (17)
AzureEnvironmentResourceExtensionsTests.cs (17)
129var remaining = json["remainingResources"]!.AsArray(); 665var recommendedActions = Assert.IsType<JsonArray>(resultData["recommendedActions"]); 1250var recommendedActions = Assert.IsType<JsonArray>(live["recommendedActions"]); 1524var recommendedActions = Assert.IsType<JsonArray>(live["recommendedActions"]); 2130var resultResourceIds = Assert.IsType<JsonArray>(resultData["deletedResourceIds"]); 4345var diagnostics = Assert.IsType<JsonArray>(data["diagnostics"]); 4354var recommendedActions = Assert.IsType<JsonArray>(diagnostic["recommendedActions"]); 4553var diagnostics = Assert.IsType<JsonArray>(data["diagnostics"]); 4561var resultRecommendedActions = Assert.IsType<JsonArray>(diagnostic["recommendedActions"]);
Aspire.Hosting.Azure.WebPubSub (1)
AzureWebPubSubExtensions.cs (1)
228var handlers = new JsonArray();
Aspire.Hosting.CodeGeneration.Go (1)
AtsGoCodeGenerator.cs (1)
698AtsTypeCategory.Array or AtsTypeCategory.List when value is JsonArray arr
Aspire.Hosting.CodeGeneration.Java (2)
AtsJavaCodeGenerator.cs (2)
883AtsTypeCategory.Array when value is JsonArray arr 885AtsTypeCategory.List when value is JsonArray arr
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
1018AtsTypeCategory.Array or AtsTypeCategory.List when value is JsonArray arr
Aspire.Hosting.CodeGeneration.TypeScript (7)
TypeScriptApiExportWriter.cs (6)
25var modules = new JsonArray(); 31var declarations = new JsonArray(); 74var items = new JsonArray(); 109var members = new JsonArray(); 147var parameters = new JsonArray(); 196var array = new JsonArray();
TypeScriptApiProjector.cs (1)
775AtsTypeCategory.Array or AtsTypeCategory.List when value is JsonArray arr
Aspire.Hosting.Java.Tests (2)
AddJavaAppTests.cs (2)
1333var args = manifest?["args"]?.AsArray(); 1349var args = manifest?["args"]?.AsArray();
Aspire.Hosting.Native.Client (1)
Authoring\NativePipeline.cs (1)
195private static JsonArray Strings(IEnumerable<string> values) =>
Aspire.Hosting.Native.CodeGeneration (2)
NativeProviderProjection.cs (2)
37var capabilities = manifest["capabilities"]!.AsArray(); 52var parameters = new JsonArray();
Aspire.Hosting.Native.Core.Tests (4)
NativeComposeCSharpTests.cs (1)
437var resources = context.Model["resources"]!.AsArray();
NativeProviderLifecycleTests.cs (1)
233var methods = manifest["capabilities"]!.AsArray();
TestServices\LifecycleProviderTestIntegration.cs (1)
30var methods = new JsonArray
WorkloadDefinitionTests.cs (1)
52var endpoints = launch["endpoints"]!.AsArray();
Aspire.Hosting.Native.Server (26)
Api\PublishingApi.cs (2)
29var resources = new JsonArray(); 36var arguments = new JsonArray();
Rpc\INativeRpcPeer.cs (1)
15Task<JsonNode?> RequestAsync(string method, JsonArray arguments, CancellationToken cancellationToken);
Rpc\NativeLanguageCatalog.cs (2)
17private JsonArray _providers = []; 71public JsonArray ProviderConfiguration() => _providers.DeepClone().AsArray();
Rpc\NativeProviderMetadata.cs (3)
37envelope["capabilities"] is not JsonArray { Count: > 0 and <= 128 } capabilities) 45metadata["parameters"] is not JsonArray { Count: <= 32 } parameters || 72argument["callbackParameters"] is not JsonArray { Count: <= 16 } callbackParameters ||
Rpc\NativeProviderRegistry.cs (2)
325JsonArray array => new JsonArray(array.Select(Translate).ToArray()), 349JsonArray array => new JsonArray(array.Select(DelegateResult).ToArray()),
Rpc\NativeRpcConnection.cs (1)
163internal Task<JsonNode?> RequestAsync(string method, JsonArray arguments) =>
Rpc\NativeRpcConnection.Dispatch.cs (12)
14if (parameters is not JsonArray { Count: 1 } authentication) 33if (parameters is not null and not JsonArray { Count: 0 }) 43if (parameters is not null and not JsonArray { Count: 0 }) 53if (_languages is null || parameters is not null and not JsonArray { Count: 0 } || 68if (parameters is not JsonArray { Count: > 0 and <= 2 } arguments || 82if (parameters is not JsonArray { Count: 2 } arguments || arguments[1] is not JsonObject capabilityArguments) 107if (_providers is null || parameters is not null and not JsonArray { Count: 0 }) 113if (_providers is null || parameters is not JsonArray { Count: 1 } expectation || _providers.IsProvider(this)) 119if (_providers is null || _peer is null || parameters is not JsonArray { Count: 1 } registration) 126if (_providers is null || parameters is not JsonArray { Count: 1 } activation) 133if (_providers is null || parameters is not JsonArray { Count: 1 } abandonment) 139if (_providers is null || parameters is not JsonArray { Count: 2 } callback || callback[1] is not JsonObject callbackArguments)
Rpc\NativeRpcPeer.cs (1)
29public async Task<JsonNode?> RequestAsync(string method, JsonArray arguments, CancellationToken cancellationToken)
Rpc\NativeRpcProtocol.cs (1)
162JsonValueKind.Array => JsonArray.Create(element.Clone()),
Rpc\RpcArguments.cs (1)
34public static string[] Strings(JsonNode? value) => value is JsonArray array
Aspire.Hosting.RemoteHost (6)
Ats\AtsMarshaller.cs (4)
386var jsonArray = new JsonArray(); 468var jsonArray = new JsonArray(); 604if (node is JsonArray array) 729JsonArray => "array",
Ats\CapabilityDispatcher.cs (1)
983JsonArray => "array",
Ats\ReferenceExpressionRef.cs (1)
115providersNode is JsonArray providersArray)
Aspire.Hosting.RemoteHost.Tests (14)
AtsMarshallerTests.cs (7)
261Assert.IsType<JsonArray>(result); 262var jsonArray = (JsonArray)result; 464var json = new JsonArray { 1, 2, 3 }; 477var json = new JsonArray { "a", "b", "c" }; 742var json = new JsonArray { 1, 2, 3 }; 755var json = new JsonArray { "x", "y" };
CapabilityDispatcherTests.cs (6)
958var resultArray = result as JsonArray; 1444var keysArray = result as JsonArray; 1469var keysArray = Assert.IsType<JsonArray>(result);
ReferenceExpressionRefTests.cs (1)
265var providersArray = new JsonArray();
Aspire.Hosting.Tests (8)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (2)
1327var list = Assert.IsAssignableFrom<JsonArray>(snapshot.Properties["list"]);
Dcp\JsonPatchTests.cs (4)
19var patch = JsonPatch.Create(current, changed); 33var patch = JsonPatch.Create(current, changed); 59var patch = JsonPatch.Create(current, changed); 71var patch = JsonPatch.Create(current, changed);
Dcp\TestKubernetesService.cs (2)
387var jsonPatch = (JsonArray)patch.Content;
ConfigurationSchemaGenerator (2)
ConfigSchemaEmitter.cs (2)
596var enumNode = new JsonArray(); 754case JsonArray array:
dotnet-aot (1)
parent\dotnet\Telemetry\TelemetryDiskLogger.cs (1)
56var activitiesArray = root["activities"]!.AsArray();
dotnet-user-jwts (1)
Helpers\SigningKeysHandler.cs (1)
82var signingKeys = secrets[signkingKeysPropertyName].AsArray();
GenerateTemplateManifest (1)
ComponentManifest.cs (1)
88var entries = new JsonArray();
Infrastructure.Tests (10)
WorkflowScripts\AutoSecWorkflowTests.cs (10)
417var comparisons = result["comparisons"]!.AsArray(); 687var statuses = new JsonArray(); 3268var conditions = CompiledPublicationConditions(); 3686private static JsonArray CompiledPublicationConditions() 3997var items = new JsonArray(); 4026var items = new JsonArray(); 4143var alerts = new JsonArray( 4161var updates = new JsonArray(new JsonObject { ["name"] = "lodash", ["from"] = "4.17.20", ["to"] = "4.17.21" }); 4162var versionChanges = new JsonArray(new JsonObject { ["name"] = "minimist", ["from"] = new JsonArray("1.2.5"), ["to"] = "1.2.8" }); 4195var alerts = new JsonArray(
Microsoft.AspNetCore.JsonPatch.SystemTextJson (7)
Adapters\AdapterFactory.cs (1)
34JsonArray => new ListAdapter(),
Helpers\GenericListOrJsonArrayUtilities.cs (6)
19if (list is JsonArray array) 33else if (list is JsonArray array) 50if (list is JsonArray jsonArray) 64else if (list is JsonArray array) 80else if (list is JsonArray array) 96else if (list is JsonArray array)
Microsoft.AspNetCore.OpenApi (12)
Extensions\JsonNodeSchemaExtensions.cs (5)
361if (enumType.IsEnum && schema[OpenApiSchemaKeywords.EnumKeyword] is JsonArray) 364var enumArray = new JsonArray(); 593if (schema[OpenApiSchemaKeywords.TypeKeyword] is JsonArray typeArray) 607if (schema[OpenApiSchemaKeywords.EnumKeyword] is JsonArray enumArray) 616if (jsonNode is not JsonArray jsonArray)
Schemas\OpenApiJsonSchema.Helpers.cs (1)
143var array = new JsonArray();
Services\Schemas\OpenApiSchemaService.cs (6)
236static JsonArray JsonArray(ReadOnlySpan<JsonNode> values) 238var array = new JsonArray(); 277if (rawNode[OpenApiSchemaKeywords.EnumKeyword] is JsonArray rawEnum && rawEnum.Count > 0) 632else if (node is JsonArray jsonArray) 634var newArray = new JsonArray(); 750if (currentNode is JsonArray currentArray)
Microsoft.Extensions.AI (1)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
224JsonValueKind.Array => JsonArray.Create(element),
Microsoft.Extensions.AI.Abstractions (13)
Utilities\AIJsonUtilities.cs (1)
166case JsonArray array:
Utilities\AIJsonUtilities.Defaults.cs (1)
75[JsonSerializable(typeof(JsonArray))]
Utilities\AIJsonUtilities.Schema.Create.cs (8)
91JsonArray? requiredProperties = null; 567JsonArray? requiredArray = requiredSchemaObj.TryGetPropertyValue(RequiredPropertyName, out JsonNode? existing) ? 568existing as JsonArray : 576requiredArray ??= (JsonArray)(requiredSchemaObj[RequiredPropertyName] = new JsonArray()); 696static JsonArray CreateJsonArray(object?[] values, JsonSerializerOptions serializerOptions) 698JsonArray enumArray = new(); 729foreach (JsonNode? entry in (JsonArray)typeNode) 782if (ctx.TypeInfo.NumberHandling is not JsonNumberHandling.Strict && schema["type"] is JsonArray typeArray)
Utilities\AIJsonUtilities.Schema.Transform.cs (3)
108if (schemaObj.TryGetPropertyValue(combinatorKeyword, out JsonNode? combinatorSchema) && combinatorSchema is JsonArray combinatorArray) 135JsonArray requiredProps = []; 146typeSchema is JsonArray typeArray)
Microsoft.Extensions.AI.Abstractions.Tests (4)
test\Shared\JsonSchemaExporter\TestTypes.cs (2)
106yield return new TestData<JsonArray>([(JsonNode)1, (JsonNode)2, (JsonNode)3], """{"type":["array","null"]}"""); 1250[JsonSerializable(typeof(JsonArray))]
Utilities\AIJsonUtilitiesTests.cs (2)
1850Assert.Equal(((JsonArray)schemaObj["required"]!).Count, ((JsonObject)props!).Count); 1853if (schemaObj.TryGetPropertyValue("type", out JsonNode? type) && type is JsonArray typeArray)
Microsoft.Extensions.AI.Evaluation.Quality (3)
AIToolExtensions.cs (1)
20var toolDefinitionsJsonArray = new JsonArray();
ChatMessageExtensions.cs (1)
17var messagesJsonArray = new JsonArray();
ChatResponseExtensions.cs (1)
27var toolCallsAndResultsJsonArray = new JsonArray();
Microsoft.ML.AutoML.SourceGenerator (1)
SearchSpaceGenerator.cs (1)
40var searchSpaceJArray = jNode["search_space"].AsArray();
Microsoft.NET.Build.Containers (13)
ImageConfig.cs (5)
168static JsonArray ToJsonArray(IEnumerable<string> items) => new(items.Where(s => !string.IsNullOrEmpty(s)).Select(s => JsonValue.Create(s)).ToArray<JsonNode?>()); 282if (_config["config"]?["Env"] is JsonArray envVarJson) 312private JsonArray CreateEnvironmentVariablesMapping() 315JsonArray envVarJson = new(); 337if (rootfs["type"]?.GetValue<string>() == "layers" && rootfs["diff_ids"] is JsonArray layers)
LocalDaemons\ContainerArchive.cs (4)
63JsonArray layerTarballPaths = new(); 115JsonArray? layerTarballPaths = null) 156JsonArray layerTarballPaths, 159JsonArray tagsNode = new();
LocalDaemons\DockerCli.cs (4)
315JsonArray layerTarballPaths = new(); 334JsonArray? layerTarballPaths = null) 382JsonArray layerTarballPaths, 385JsonArray tagsNode = new();
Microsoft.NET.Build.Tasks (3)
GenerateRuntimeConfigurationFiles.cs (3)
467JsonArray probingPaths = new(); 489private static JsonArray SerializeFrameworks(List<RuntimeConfigFramework> frameworks) 491JsonArray array = new();
Microsoft.TemplateEngine.Cli (7)
Alias\AliasRegistry.cs (2)
153JsonArray arr = new(); 205else if (property.Value is JsonArray arr)
HostSpecificTemplateData.cs (1)
29if (usagesNode is JsonArray usagesArray)
JExtensions.cs (2)
196token = token.Get<JsonArray>(propertyName); 199if (token is not JsonArray arr)
PostActionProcessors\ChmodPostActionProcessor.cs (1)
25JsonArray valueArray = JsonNode.Parse(entry.Value)!.AsArray();
PostActionProcessors\PostActionProcessorBase.cs (1)
138if (config is not JsonArray arr)
Microsoft.TemplateEngine.Edge (24)
BuiltInManagedProvider\GlobalSettings.cs (1)
86foreach (var package in jObject.Get<JsonArray>(nameof(GlobalSettingsData.Packages)) ?? new JsonArray())
Constraints\ConstraintsExtensions.cs (4)
27JsonArray array = token.ToConstraintsJsonArray(args, true); 55JsonArray array = token.ToConstraintsJsonArray(args, false); 133private static JsonArray ToConstraintsJsonArray(this JsonNode token, string? args, bool isStringTypeAllowed) 135if (token is not JsonArray array)
parent\Shared\JExtensions.cs (8)
368token = token.Get<JsonArray>(propertyName); 371if (token is not JsonArray arr) 393token = token.Get<JsonArray>(propertyName); 396if (token is not JsonArray arr) 422token = token.Get<JsonArray>(propertyName); 425if (token is not JsonArray arr) 636else if (property.Value is JsonArray sourceArr 638&& targetNode is JsonArray targetArr)
Settings\SettingsStore.cs (2)
37if (probingPathsToken is JsonArray probingPathsArray) 55if (entry.Value is JsonArray values)
Settings\TemplateCache.cs (1)
112if (contentJObject.TryGetValueCaseInsensitive(nameof(TemplateInfo), out JsonNode? templateInfoToken) && templateInfoToken is JsonArray arr)
Settings\TemplateInfoReader.cs (8)
31JsonArray? classificationsArray = entry.Get<JsonArray>(nameof(Classifications)); 76JsonArray? parametersArray = entry.Get<JsonArray>(nameof(Parameters)); 106JsonArray? postActionsArray = entry.Get<JsonArray>(nameof(info.PostActions)); 121JsonArray? constraintsArray = entry.Get<JsonArray>(nameof(info.Constraints));
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (25)
ConfigModel\CustomFileGlobModel.cs (1)
46foreach (JsonNode? operationConfig in (JsonArray)operationData!)
ConfigModel\PostActionModel.cs (3)
79internal static IReadOnlyList<PostActionModel> LoadListFromJArray(JsonArray? jArray, List<IValidationEntry> validationEntries) 144IReadOnlyList<ManualInstructionModel> manualInstructions = LoadManualInstructionsFromJArray(action.Get<JsonArray>("ManualInstructions"), validationEntries); 180private static IReadOnlyList<ManualInstructionModel> LoadManualInstructionsFromJArray(JsonArray? jArray, List<IValidationEntry> validationEntries)
ConfigModel\PrimaryOutputModel.cs (1)
30internal static IReadOnlyList<PrimaryOutputModel> ListFromJArray(JsonArray? jsonData)
ConfigModel\ReplacementContext.cs (2)
33JsonArray? onlyIf = jObject.Get<JsonArray>("onlyIf");
ConfigModel\TemplateConfigModel.cs (2)
154_postActions = PostActionModel.LoadListFromJArray(source.Get<JsonArray>("PostActions"), _validationEntries); 155PrimaryOutputs = PrimaryOutputModel.ListFromJArray(source.Get<JsonArray>(nameof(PrimaryOutputs)));
Macros\BaseMacroConfig.cs (3)
135protected static JsonArray ConvertJTokenToJArray(string token, IGeneratedSymbolConfig config, string parameterName) 144return (JsonArray)jToken; 189protected JsonArray GetMandatoryParameterArray(IGeneratedSymbolConfig config, string parameterName)
Macros\JoinMacroConfig.cs (1)
32JsonArray jArray = GetMandatoryParameterArray(generatedSymbolConfig, SymbolsPropertyName);
Macros\RegexMacroConfig.cs (1)
34JsonArray jArray = GetMandatoryParameterArray(generatedSymbolConfig, StepsPropertyName);
Macros\SwitchMacroConfig.cs (1)
33JsonArray jArray = GetMandatoryParameterArray(generatedSymbolConfig, CasesPropertyName);
OperationConfig\ReplacementConfig.cs (2)
29JsonArray? onlyIf = rawConfiguration.Get<JsonArray>("onlyIf");
parent\Shared\JExtensions.cs (8)
368token = token.Get<JsonArray>(propertyName); 371if (token is not JsonArray arr) 393token = token.Get<JsonArray>(propertyName); 396if (token is not JsonArray arr) 422token = token.Get<JsonArray>(propertyName); 425if (token is not JsonArray arr) 636else if (property.Value is JsonArray sourceArr 638&& targetNode is JsonArray targetArr)
Microsoft.TemplateEngine.Utils (8)
parent\Shared\JExtensions.cs (8)
368token = token.Get<JsonArray>(propertyName); 371if (token is not JsonArray arr) 393token = token.Get<JsonArray>(propertyName); 396if (token is not JsonArray arr) 422token = token.Get<JsonArray>(propertyName); 425if (token is not JsonArray arr) 636else if (property.Value is JsonArray sourceArr 638&& targetNode is JsonArray targetArr)
Microsoft.TemplateSearch.Common (20)
parent\Shared\JExtensions.cs (8)
368token = token.Get<JsonArray>(propertyName); 371if (token is not JsonArray arr) 393token = token.Get<JsonArray>(propertyName); 396if (token is not JsonArray arr) 422token = token.Get<JsonArray>(propertyName); 425if (token is not JsonArray arr) 636else if (property.Value is JsonArray sourceArr 638&& targetNode is JsonArray targetArr)
TemplateDiscoveryMetadata\BlobStorageTemplateInfo.cs (6)
163JsonArray? classificationsArray = entry.Get<JsonArray>(nameof(Classifications)); 194JsonArray? postActionsArray = entry.Get<JsonArray>(nameof(info.PostActions)); 211JsonArray? parametersArray = entry.Get<JsonArray>(nameof(Parameters));
TemplateDiscoveryMetadata\LegacySearchCacheReader.cs (2)
108if (templateInfoToken is JsonArray arr) 168&& identificationNode is JsonArray identificationArray)
TemplateSearchCache\TemplatePackageSearchData.Json.cs (2)
39JsonArray? templatesData = jObject.Get<JsonArray>(nameof(Templates))
TemplateSearchCache\TemplateSearchCache.Json.cs (2)
52JsonArray? data = cacheObject.Get<JsonArray>(nameof(TemplatePackages))
MSBuild (2)
JsonOutputFormatter.cs (2)
57JsonArray itemArray = new(); 96JsonArray outputArray = new();
NativeIntegrations.DockerCompose (5)
ComposeModels.cs (2)
347internal static JsonArray Strings(IEnumerable<string> values) => new(values.Select(value => (JsonNode?)JsonValue.Create(value)).ToArray()); 352JsonArray array => new JsonArray(array.Select(EscapeNode).ToArray()),
DockerComposeBuilderExtensions.cs (1)
41var parameters = plan.Inputs["parameters"]!.AsArray();
DockerComposeEnvironment.cs (2)
316var services = new JsonArray(); 327var endpoints = new JsonArray();
SelectTests (6)
Program.cs (6)
661static JsonArray ToJsonArray(IEnumerable<string> values) 663var array = new JsonArray(); 674static JsonArray ItemsWithCauses(IReadOnlySet<string> items, IReadOnlyDictionary<string, IReadOnlyList<Cause>> causes) 676var array = new JsonArray(); 679var causeArray = new JsonArray(); 684JsonArray? path = null;
Shared.Tests (2)
JsonSchemaExporter\TestTypes.cs (2)
106yield return new TestData<JsonArray>([(JsonNode)1, (JsonNode)2, (JsonNode)3], """{"type":["array","null"]}"""); 1250[JsonSerializable(typeof(JsonArray))]
System.Text.Json (76)
System\Text\Json\Nodes\JsonArray.cs (21)
16/// It is safe to perform multiple concurrent read operations on a <see cref="JsonArray"/>, 29/// Initializes a new instance of the <see cref="JsonArray"/> class that is empty. 35/// Initializes a new instance of the <see cref="JsonArray"/> class that contains items from the specified params array. 38/// <param name="items">The items to add to the new <see cref="JsonArray"/>.</param> 45/// Initializes a new instance of the <see cref="JsonArray"/> class that contains items from the specified params span. 48/// <param name="items">The items to add to the new <see cref="JsonArray"/>.</param> 55/// Initializes a new instance of the <see cref="JsonArray"/> class that contains items from the specified array. 57/// <param name="items">The items to add to the new <see cref="JsonArray"/>.</param> 64/// Initializes a new instance of the <see cref="JsonArray"/> class that contains items from the specified span. 66/// <param name="items">The items to add to the new <see cref="JsonArray"/>.</param> 85var jsonArray = new JsonArray(Options) 107case JsonArray array: 176/// Initializes a new instance of the <see cref="JsonArray"/> class that contains items from the specified <see cref="JsonElement"/>. 179/// The new instance of the <see cref="JsonArray"/> class that contains items from the specified <see cref="JsonElement"/>. 186public static JsonArray? Create(JsonElement element, JsonNodeOptions? options = null) 203/// Adds an object to the end of the <see cref="JsonArray"/>. 207/// The object to be added to the end of the <see cref="JsonArray"/>. 348private readonly JsonArray _node; 350public DebugView(JsonArray node) 400JsonArray jsonArray = (JsonArray)Value;
System\Text\Json\Nodes\JsonArray.IList.cs (20)
12/// Gets the number of elements contained in the <see cref="JsonArray"/>. 17/// Adds a <see cref="JsonNode"/> to the end of the <see cref="JsonArray"/>. 20/// The <see cref="JsonNode"/> to be added to the end of the <see cref="JsonArray"/>. 30/// Removes all elements from the <see cref="JsonArray"/>. 52/// Determines whether an element is in the <see cref="JsonArray"/>. 54/// <param name="item">The object to locate in the <see cref="JsonArray"/>.</param> 56/// <see langword="true"/> if <paramref name="item"/> is found in the <see cref="JsonArray"/>; otherwise, <see langword="false"/>. 61/// The object to locate in the <see cref="JsonArray"/>. 63/// <param name="item">The <see cref="JsonNode"/> to locate in the <see cref="JsonArray"/>.</param> 70/// Inserts an element into the <see cref="JsonArray"/> at the specified index. 84/// Removes the first occurrence of a specific <see cref="JsonNode"/> from the <see cref="JsonArray"/>. 87/// The <see cref="JsonNode"/> to remove from the <see cref="JsonArray"/>. 104/// Removes the element at the specified index of the <see cref="JsonArray"/>. 121/// <returns>The number of elements removed from the <see cref="JsonArray"/>.</returns> 144/// Removes a range of elements from the <see cref="JsonArray"/>. 152/// <paramref name="index"/> and <paramref name="count"/> do not denote a valid range of elements in the <see cref="JsonArray"/>. 194/// from <see cref="JsonArray"/>. The Array must have zero-based indexing.</param> 211/// Returns an enumerator that iterates through the <see cref="JsonArray"/>. 217/// Returns an enumerator that iterates through the <see cref="JsonArray"/>. 220/// A <see cref="IEnumerator"/> for the <see cref="JsonArray"/>.
System\Text\Json\Nodes\JsonNode.cs (17)
55/// Casts to the derived <see cref="JsonArray"/> type. 58/// A <see cref="JsonArray"/>. 61/// The node is not a <see cref="JsonArray"/>. 63public JsonArray AsArray() 65JsonArray? jArray = this as JsonArray; 69ThrowHelper.ThrowInvalidOperationException_NodeWrongType(nameof(JsonArray)); 120/// A parent can either be a <see cref="JsonObject"/> or a <see cref="JsonArray"/>. 210/// The current <see cref="JsonNode"/> is not a <see cref="JsonArray"/> or <see cref="JsonObject"/>. 220ThrowHelper.ThrowInvalidOperationException_NodeWrongType(nameof(JsonArray), nameof(JsonObject)); 225ThrowHelper.ThrowInvalidOperationException_NodeWrongType(nameof(JsonArray), nameof(JsonObject)); 284/// Returns index of the current node from the parent <see cref="JsonArray" />. 287/// The current parent is not a <see cref="JsonArray"/>. 291JsonArray? parentArray = _parent as JsonArray; 295ThrowHelper.ThrowInvalidOperationException_NodeParentWrongType(nameof(JsonArray)); 339case JsonArray jsonArray:
System\Text\Json\Nodes\JsonObject.cs (3)
209case JsonArray: 377JsonArray jsonArray = (JsonArray)Value;
System\Text\Json\Schema\JsonSchema.cs (4)
69public JsonArray? Enum { get; set { VerifyMutable(); field = value; } } 194var requiredArray = new JsonArray(); 225JsonArray anyOfArray = []; 325var array = new JsonArray();
System\Text\Json\Serialization\Converters\Node\JsonArrayConverter.cs (6)
10internal sealed class JsonArrayConverter : JsonConverter<JsonArray?> 12public override void Write(Utf8JsonWriter writer, JsonArray? value, JsonSerializerOptions options) 23public override JsonArray? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 38internal static JsonArray ReadAsJsonElement(ref Utf8JsonReader reader, JsonNodeOptions options) 44internal static JsonArray ReadAsJsonNode(ref Utf8JsonReader reader, JsonNodeOptions options) 48JsonArray jArray = new JsonArray(options);
System\Text\Json\Serialization\Converters\Node\JsonNodeConverterFactory.cs (1)
28if (typeof(JsonArray) == typeToConvert)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
502JsonArray enumValues = [];
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Converters.cs (3)
117/// Returns a <see cref="JsonConverter{T}"/> instance that converts <see cref="JsonArray"/> values. 120public static JsonConverter<JsonArray?> JsonArrayConverter => field ??= new JsonArrayConverter(); 141/// Returns a <see cref="JsonConverter{T}"/> instance that converts <see cref="JsonArray"/> values.
TestProject.AppHost (1)
TestProgram.cs (1)
180var endpointsJsonArray = new JsonArray();