2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 10:46:53 +00:00

98_JsonMod.pm: feature: use concat in single() mit multiple jsonPath()

git-svn-id: https://svn.fhem.de/fhem/trunk@21596 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
herrmannj 2020-04-04 20:03:11 +00:00
parent 638afd270a
commit 001cbf1bd7

View File

@ -305,10 +305,10 @@ sub JsonMod_DoReadings {
foreach my $arg (@args) {
if (ref($arg) eq 'CODE') {
$result .= $arg->($o);
} elsif (ref($arg) eq '') {
$result .= $arg;
} elsif (ref($arg) eq 'ARRAY' and @{$arg}) {
$result .= $arg->[0];
} else {
die('syntax');
$result .= $arg;
};
};
return $result;