I have a free-form JsonDocument which contains a JsonProperty with name internalName. My problem is that that I don't have model to parse it into (because there is no predefined JSON schema) and the property can appear at any level, parent, child etc.
How would one go about getting all the JsonElement values for the JSON property internalName?
What I have tried so far is something like this
var namesUsedInLayout = Layout.RootElement.EnumerateObject().Where(x => x.Name == "internalName").Select(x => x.Value.ToString());
This though seem to only provide me the top layer and not the child or the child of child layers.