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 #112899)
git-svn-id: https://svn.fhem.de/fhem/trunk@22403 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user