2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2024-12-22 15:51:51 +00:00

fhem.pl: json2nameValue key decoding fix after utf8-fix (Forum #139923)

git-svn-id: https://svn.fhem.de/fhem/trunk@29402 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2024-12-05 16:03:59 +00:00
parent 355601fb40
commit 8c751cc065

View File

@ -5463,6 +5463,8 @@ json2nameValue($;$$$$)
while($in2 =~ m/^\s*"([^"]*)"\s*:\s*(.*)$/s) { # 125340 while($in2 =~ m/^\s*"([^"]*)"\s*:\s*(.*)$/s) { # 125340
my ($name,$val) = ($1,$2); my ($name,$val) = ($1,$2);
($err,$name) = lStr('"'.$name.'"'); #139807 ($err,$name) = lStr('"'.$name.'"'); #139807
return ($err,undef) if($err);
$name = makeReadingName($name);
($err,$in2) = eObj(\%r2, $name, $val, $in2, $prefix); ($err,$in2) = eObj(\%r2, $name, $val, $in2, $prefix);
return ($err,undef) if($err); return ($err,undef) if($err);
$in2 =~ s/^\s*,\s*//; $in2 =~ s/^\s*,\s*//;