fhem.pl: json2nameValue learns the null (Forum #93298)

git-svn-id: https://svn.fhem.de/fhem/trunk@17762 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2018-11-16 12:29:57 +00:00
parent e1e2e2fda2
commit 5f42f9b2cd

View File

@@ -5003,6 +5003,10 @@ json2nameValue($;$)
$ret->{"$prefix$name"} = $1;
$in = $2;
} elsif($val =~ m/^(null)(.*)$/s) {
$ret->{"$prefix$name"} = undef;
$in = $2;
} else {
Log 1, "Error parsing >$val< for $prefix$name";
$in = "";