2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

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 b8be20a4bb
commit f8112d4a9e

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 = "";