2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-28 02:44:53 +00:00

fhem.pl: json2nameValue: fix parsing 0 in array (Forum )

git-svn-id: https://svn.fhem.de/fhem/trunk@22403 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-07-15 12:19:04 +00:00
parent f0bd83995a
commit 9b4ab35610

@ -5232,7 +5232,7 @@ json2nameValue($;$$)
return ($err,undef) if($err);
my $idx = 1;
$val =~ s/^\s*//;
while($val) {
while(defined($val) && $val ne "") {
($err,$val) = eObj($ret, $map,
$firstLevel ? "$prefix$idx" : $name."_$idx",
$val, $val, $prefix);