(plugin) apps::protocols::http - mode collection subsitute json path (#4108)

This commit is contained in:
qgarnier 2022-12-16 10:53:04 +00:00 committed by GitHub
parent a02be2467e
commit 493027f934
1 changed files with 2 additions and 0 deletions

View File

@ -435,6 +435,8 @@ sub parse_structure {
$self->{output}->option_exit(); $self->{output}->option_exit();
} }
$options{conf}->{path} = $self->substitute_string(value => $options{conf}->{path});
my $jpath = JSON::Path->new($options{conf}->{path}); my $jpath = JSON::Path->new($options{conf}->{path});
my @values = $jpath->values($options{content}); my @values = $jpath->values($options{content});