Why does this not work?
my $myHashEncoded = encode_json \%myHash;
my %myHashDecoded = decode_json($myHashEncoded);
I get the error:
Reference found where even-sized list expected at ...
So I changed it to:
my $myHashEncoded = encode_json \%myHash;
my $myHashDecoded = decode_json($enableInputEncoded);
But then obviously %myHash is not the same as $myHashDecoded.
How do I restore a proper hash from the JSON string?
encode_jsonanddecode_jsonfrom?my %myHashDecoded = %{ decode_json($enableInputEncoded) };