373 instantiations of JsonObject
aspire (41)
Aspire.Cli.Tests (38)
Aspire.Dashboard (2)
Aspire.Dashboard.Tests (9)
Aspire.Hosting (7)
Aspire.Hosting.Azure (4)
Aspire.Hosting.Azure.Tests (48)
Aspire.Hosting.RemoteHost (6)
Aspire.Hosting.RemoteHost.Tests (101)
CapabilityDispatcherTests.cs (71)
72dispatcher.Invoke("test/capability@1", new JsonObject { ["name"] = "test-value" });
167var args = new JsonObject { ["value"] = "hello" };
179var args = new JsonObject { ["required"] = "test" };
191var args = new JsonObject { ["required"] = "test", ["optional"] = "custom" };
232var args = new JsonObject { ["context"] = new JsonObject { ["$handle"] = handleId } };
259var args = new JsonObject { ["context"] = "not-a-handle" };
271var args = new JsonObject { ["context"] = new JsonObject { ["$handle"] = "Aspire.Hosting.RemoteHost.Tests/Aspire.Hosting.RemoteHost.Tests.TestContextType:999" } };
325var args = new JsonObject { ["context"] = new JsonObject { ["$handle"] = handleId } };
344var nestedArgs = new JsonObject { ["context"] = new JsonObject { ["$handle"] = nestedHandleId } };
402var args = new JsonObject
404["context"] = new JsonObject { ["$handle"] = handleId },
423var args = new JsonObject
425["context"] = new JsonObject { ["$handle"] = handleId },
442var args = new JsonObject
444["context"] = new JsonObject { ["$handle"] = handleId },
461var args = new JsonObject
463["context"] = new JsonObject { ["$handle"] = handleId }
494var args = new JsonObject
496["context"] = new JsonObject { ["$handle"] = handleId }
512var args = new JsonObject
514["context"] = new JsonObject { ["$handle"] = handleId },
533var args = new JsonObject
535["context"] = new JsonObject { ["$handle"] = handleId },
578var args = new JsonObject
601var args = new JsonObject
622var args = new JsonObject
645var args = new JsonObject
664var args = new JsonObject
692var args = new JsonObject { ["value"] = "test" };
703var args = new JsonObject { ["value"] = "hello" };
715var args = new JsonObject { ["value"] = "test" };
729var args = new JsonObject
744var args = new JsonObject { ["count"] = 3 };
761var args = new JsonObject
777var args = new JsonObject { ["value"] = "hello" };
789var args = new JsonObject { ["value"] = 42 };
825var args = new JsonObject
827["list"] = new JsonObject { ["$handle"] = listHandle },
849var removeArgs = new JsonObject
851["list"] = new JsonObject { ["$handle"] = listHandle },
860var lengthArgs = new JsonObject
862["list"] = new JsonObject { ["$handle"] = listHandle }
881var args = new JsonObject
883["list"] = new JsonObject { ["$handle"] = listHandle }
904var clearArgs = new JsonObject
906["list"] = new JsonObject { ["$handle"] = listHandle }
911var lengthArgs = new JsonObject
913["list"] = new JsonObject { ["$handle"] = listHandle }
949var args = new JsonObject
951["dict"] = new JsonObject { ["$handle"] = dictHandle },
973var removeArgs = new JsonObject
975["dict"] = new JsonObject { ["$handle"] = dictHandle },
984var countArgs = new JsonObject
986["dict"] = new JsonObject { ["$handle"] = dictHandle }
1006var hasArgs = new JsonObject
1008["dict"] = new JsonObject { ["$handle"] = dictHandle },
1017var hasArgs2 = new JsonObject
1019["dict"] = new JsonObject { ["$handle"] = dictHandle },
1039var args = new JsonObject
1041["dict"] = new JsonObject { ["$handle"] = dictHandle }
1065var args = new JsonObject
1067["dict"] = new JsonObject { ["$handle"] = dictHandle }
1082var args = new JsonObject
1099var args = new JsonObject
1116var args = new JsonObject
1133var args = new JsonObject
1150var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptOptionalEnum", new JsonObject());
Aspire.Hosting.Tests (21)
Aspire.Hosting.Yarp (4)
ConfigurationSchemaGenerator (13)
dotnet-user-jwts (5)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (7)
JsonPatchDocumentJObjectTest.cs (6)
48var model = new ObjectWithJObject { CustomData = new JsonObject([new("Email", "foo@bar.com"), new("Name", "Bar")]) };
65var model = new ObjectWithJObject { CustomData = new JsonObject([new("Email", "foo@bar.com")]) };
81var model = new ObjectWithJObject { CustomData = new JsonObject([new("FirstName", "Bar"), new("LastName", "Bar")]) };
97var model = new ObjectWithJObject { CustomData = new JsonObject([new("FirstName", "Bar")]) };
147var model = new ObjectWithJObject { CustomData = new JsonObject([new("Email", "foo@bar.com"), new("Name", "Bar")]) };
163var model = new ObjectWithJObject { CustomData = new JsonObject([new("Email", "foo@bar.com"), new("Name", "Bar")]) };
Microsoft.AspNetCore.OpenApi (23)
Microsoft.AspNetCore.OpenApi.Tests (2)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (8)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.AI.Evaluation.Quality (1)
Microsoft.Extensions.AI.Evaluation.Safety (13)
ServiceBus.AppHost (1)
Shared.Tests (1)
Stress.ApiService (1)
System.Text.Json (10)
TestProject.AppHost (3)
658 references to JsonObject
aspire (79)
Aspire.Cli.Tests (74)
Aspire.Dashboard (11)
Aspire.Dashboard.Tests (4)
Aspire.Hosting (63)
Aspire.Hosting.Azure (16)
Aspire.Hosting.Azure.Tests (34)
Aspire.Hosting.RemoteHost (28)
Ats\AtsCallbackProxyFactory.cs (10)
123var jsonObjectType = typeof(JsonObject);
182argsExpr ?? Expression.Constant(null, typeof(JsonObject)),
196argsExpr ?? Expression.Constant(null, typeof(JsonObject)),
210argsExpr ?? Expression.Constant(null, typeof(JsonObject)),
224argsExpr ?? Expression.Constant(null, typeof(JsonObject)),
228private void InvokeSyncVoid(string callbackId, JsonObject? args, CancellationToken cancellationToken)
234private T? InvokeSyncResult<T>(string callbackId, JsonObject? args, CancellationToken cancellationToken)
241private async Task InvokeAsyncVoid(string callbackId, JsonObject? args, CancellationToken cancellationToken)
247private async Task<T?> InvokeAsyncResult<T>(string callbackId, JsonObject? args, CancellationToken cancellationToken)
270private void AddCancellationTokenToArgs(ref JsonObject? args, CancellationToken cancellationToken)
Ats\CapabilityDispatcher.cs (10)
20JsonObject? args,
461public async Task<JsonNode?> InvokeAsync(string capabilityId, JsonObject? args)
503public JsonNode? Invoke(string capabilityId, JsonObject? args)
545public static string GetRequiredString(this JsonObject args, string name, string capabilityId)
559public static string? GetOptionalString(this JsonObject args, string name)
571public static int? GetOptionalInt(this JsonObject args, string name)
584this JsonObject args,
614public static T? GetDto<T>(this JsonObject args, string name) where T : class
616if (args.TryGetPropertyValue(name, out var node) && node is JsonObject obj)
626public static JsonObject CreateHandleResult(this HandleRegistry handles, object obj, string typeId)
Aspire.Hosting.RemoteHost.Tests (100)
Aspire.Hosting.Tests (23)
Aspire.Hosting.Yarp (5)
ConfigurationSchemaGenerator (23)
ConfigSchemaEmitter.cs (23)
44var root = new JsonObject();
51private void GenerateLogCategories(JsonObject parent)
59var propertiesNode = new JsonObject(s_ignoreCaseNodeOptions);
62var categoryNode = new JsonObject();
76private void GenerateGraph(JsonObject rootNode)
101private bool GeneratePathSegment(JsonObject currentNode, TypeSpec type, Queue<string> pathSegments)
123if (currentNode[propertiesName] is not JsonObject propertiesNode)
132if (propertiesNode[pathSegment] is not JsonObject pathSegmentNode)
182private bool GenerateType(JsonObject currentNode, TypeSpec type)
226private bool GenerateObject(JsonObject currentNode, ObjectSpec objectSpec)
244if (currentNode["properties"] is not JsonObject propertiesNode)
275private bool GenerateProperty(JsonObject currentNode, PropertySpec property, IPropertySymbol? propertySymbol)
286var propertyNode = new JsonObject();
306private bool GenerateCollection(JsonObject currentNode, CollectionSpec collection, string typeName, string containerName)
319var containerNode = new JsonObject();
334private static void RestoreBackup(JsonNode? backupNode, string name, JsonObject parentNode)
434private static void GenerateDescriptionFromDocComment(JsonObject propertyNode, string docComment)
490private void GenerateDescriptionForType(JsonObject currentNode, TypeSpec type)
587private void GenerateParsableFromString(JsonObject propertyNode, ParsableFromStringSpec parsable)
678private bool IsExcluded(JsonObject currentNode, PropertySpec property)
718private static void ReplaceNodeWithKeyCasingChange(JsonObject jsonObject, string key, JsonNode value)
739case JsonObject obj:
743obj.Parent is JsonObject && obj.GetPropertyName() == "properties" ?
dotnet-user-jwts (11)
IdentitySample.PasskeyConformance (1)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (18)
Microsoft.AspNetCore.Identity.Test (10)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (13)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (4)
Microsoft.AspNetCore.OpenApi (9)
Microsoft.AspNetCore.OpenApi.Tests (3)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (15)
Microsoft.Extensions.AI.Abstractions.Tests (7)
Microsoft.Extensions.AI.Evaluation.Safety (9)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.ML.AutoML (1)
Microsoft.ML.AutoML.SourceGenerator (1)
Microsoft.ML.GenAI.Mistral (2)
Roslyn.VisualStudio.Next.UnitTests (2)
Shared.Tests (2)
System.Text.Json (82)
System.Windows.Forms.Analyzers.Tests (2)
TestProject.AppHost (3)