in src/Microsoft.Extensions.Configuration.AzureAppConfiguration/FeatureManagement/JsonFlattener.cs [30:63]
private void VisitJsonElement(JsonElement element)
{
switch (element.ValueKind)
{
case JsonValueKind.Object:
foreach (JsonProperty property in element.EnumerateObject())
{
VisitJsonProperty(property);
}
break;
case JsonValueKind.Array:
for (int index = 0; index < element.GetArrayLength(); index++)
{
EnterContext(index.ToString());
VisitJsonElement(element[index]);
ExitContext();
}
break;
case JsonValueKind.String:
case JsonValueKind.Number:
case JsonValueKind.True:
case JsonValueKind.False:
case JsonValueKind.Null:
_data.Add(new KeyValuePair<string, string>(_currentPath, element.ToString()));
break;
default:
break;
}
}