Can I use a dynamic string to query JSON data like below?
!foreach $key in $files.spec
entity $key.title {
!$json_data = %load_json($path + "/" + $key.filename)
' JSONPath = $json_data.components.schemas.UserRegisterRequest.properties !$dynamic_path = components.schemas.UserRegisterRequest.properties
!$properties = $json_data[$dynamic_path]
!foreach $property in %get_json_keys($properties)
* $property
!endfor
}
!endfor
Thanks,
SR