From 3a00bf02c611ebffa44aa1b678f30b35158ea642 Mon Sep 17 00:00:00 2001 From: Mike Alhayek Date: Tue, 7 May 2024 16:45:45 -0700 Subject: [PATCH] Expose Dictionary Keys in JsonDynamicObject --- .../Json/Dynamic/JsonDynamicObject.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/OrchardCore/OrchardCore.Abstractions/Json/Dynamic/JsonDynamicObject.cs b/src/OrchardCore/OrchardCore.Abstractions/Json/Dynamic/JsonDynamicObject.cs index 2d3b5e5b182..299a5dd50c8 100644 --- a/src/OrchardCore/OrchardCore.Abstractions/Json/Dynamic/JsonDynamicObject.cs +++ b/src/OrchardCore/OrchardCore.Abstractions/Json/Dynamic/JsonDynamicObject.cs @@ -87,7 +87,11 @@ public bool Remove(string key) return _jsonObject.Remove(key); } - public JsonNode? SelectNode(string path) => _jsonObject.SelectNode(path); + public JsonNode? SelectNode(string path) + => _jsonObject.SelectNode(path); + + public Dictionary.KeyCollection Keys + => _dictionary.Keys!; public object? GetValue(string key) {