mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
98_JsonMod.pm: feature: use concat in single() mit multiple jsonPath()
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@21596 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
01144abd3f
commit
284dff85ce
@ -305,10 +305,10 @@ sub JsonMod_DoReadings {
|
|||||||
foreach my $arg (@args) {
|
foreach my $arg (@args) {
|
||||||
if (ref($arg) eq 'CODE') {
|
if (ref($arg) eq 'CODE') {
|
||||||
$result .= $arg->($o);
|
$result .= $arg->($o);
|
||||||
} elsif (ref($arg) eq '') {
|
} elsif (ref($arg) eq 'ARRAY' and @{$arg}) {
|
||||||
$result .= $arg;
|
$result .= $arg->[0];
|
||||||
} else {
|
} else {
|
||||||
die('syntax');
|
$result .= $arg;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
return $result;
|
return $result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user