12 references to AsObject
Aspire.Hosting.Azure (5)
Provisioning\JsonExtensions.cs (1)
19obj.AsObject().Add(key, node);
Provisioning\Provisioners\AzureProvisioner.cs (1)
195? JsonNode.Parse(await File.ReadAllTextAsync(userSecretsPath, cancellationToken).ConfigureAwait(false))!.AsObject()
Provisioning\Provisioners\BicepProvisioner.cs (3)
64foreach (var item in outputObj.AsObject()) 289resourceConfig.AsObject().Clear(); 447var parameters = JsonNode.Parse(jsonString)?.AsObject();
Aspire.Hosting.Tests (1)
Utils\ManifestUtils.cs (1)
73if (!manifestNode.AsObject().TryGetPropertyValue("path", out var pathNode))
Microsoft.Build.BuildCheck.UnitTests (2)
EndToEndTests.cs (2)
184var resources = depsJson!["targets"]?.AsObject().First().Value?[$"{referencedProjectName}/1.0.0"]?["resources"]?.AsObject();
Microsoft.ML.AutoML.SourceGenerator (2)
SearchSpaceGenerator.cs (2)
65var defaultToken = t.AsObject().ContainsKey("default") ? t["default"] : null; 86var searchSpaceNode = t.AsObject().ContainsKey("search_space") ? t["search_space"] : null;
System.Text.Json (2)
System\Text\Json\Nodes\JsonNode.cs (2)
240return AsObject().GetItem(propertyName); 244AsObject().SetItem(propertyName, value);