issue #477: get rid of perl JSON module requirement.
parent
7d1b0e0807
commit
abb0319bbb
@ -1,15 +1,10 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
binmode STDOUT, ":utf8";
|
||||
use utf8;
|
||||
|
||||
use JSON;
|
||||
|
||||
my $json_args = <<'END_MESSAGE';
|
||||
<<INCLUDE_ANSIBLE_MODULE_JSON_ARGS>>
|
||||
END_MESSAGE
|
||||
|
||||
print encode_json({
|
||||
message => "I am a perl script! Here is my input.",
|
||||
input => [decode_json($json_args)]
|
||||
});
|
||||
print '{';
|
||||
print ' "message": "I am a perl script! Here is my input.",' . "\n";
|
||||
print ' "input": ' . $json_args;
|
||||
print '}' . "\n";
|
||||
|
Loading…
Reference in New Issue